Skip to content

Commit

Permalink
Updating Perl version for Linux and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-github committed Aug 10, 2020
1 parent 36ee46f commit 93b6acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Installer_scripts/PGSvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ PGServerController() {
then

# Export PATHS for PLs
export PATH=$PLPackage/Perl-5.26/bin;$PLPackage/Tcl-8.6/bin:$PATH
export LD_LIBRARY_PATH=$PLPackage/Perl-5.26/lib/CORE;$PLPackage/Tcl-8.6/lib:$LD_LIBRARY_PATH
export PERL5LIB=$PLPackage/Perl-5.26/lib;
export PATH=$PLPackage/Perl-5.30/bin;$PLPackage/Tcl-8.6/bin:$PATH
export LD_LIBRARY_PATH=$PLPackage/Perl-5.30/lib/CORE;$PLPackage/Tcl-8.6/lib:$LD_LIBRARY_PATH
export PERL5LIB=$PLPackage/Perl-5.30/lib;

"$PGHome"/bin/postgres -D "$PGHome"/data -p "$PGPort"

Expand Down
4 changes: 2 additions & 2 deletions Installer_scripts/postgresql.bin.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ PGServerController() {

if [ -f "/etc/redhat-release" ] || [ -f "/etc/SuSe-release" ]; then

serverStatus=`export PATH=$PLPackage/Perl-5.26/bin:$PATH; export LD_LIBRARY_PATH=$PLPackage/Perl-5.26/lib/CORE:$LD_LIBRARY_PATH; export PERL5LIB=$PLPackage/Perl-5.26/lib; export PATH=$PLPackage/Tcl-8.6/bin:$PATH; export LD_LIBRARY_PATH=$PLPackage/Tcl-8.6/lib:$LD_LIBRARY_PATH; $PGHome/bin/pg_ctl -D $PGHome/data -o " -p $PGPort" -l /tmp/logfile -w $1`
serverStatus=`export PATH=$PLPackage/Perl-5.30/bin:$PATH; export LD_LIBRARY_PATH=$PLPackage/Perl-5.30/lib/CORE:$LD_LIBRARY_PATH; export PERL5LIB=$PLPackage/Perl-5.30/lib; export PATH=$PLPackage/Tcl-8.6/bin:$PATH; export LD_LIBRARY_PATH=$PLPackage/Tcl-8.6/lib:$LD_LIBRARY_PATH; $PGHome/bin/pg_ctl -D $PGHome/data -o " -p $PGPort" -l /tmp/logfile -w $1`

return

else
serverStatus=`sudo su postgres -c 'export PATH='"$PLPackage"'/Perl-5.26/bin:$PATH; export LD_LIBRARY_PATH='"$PLPackage"'/Perl-5.26/lib/CORE:$LD_LIBRARY_PATH; export PERL5LIB=/'"$PLPackage"'/Perl-5.26/lib; export PATH='"$PLPackage"'/Tcl-8.6/bin:$PATH;export LD_LIBRARY_PATH='"$PLPackage"'/Tcl-8.6/lib:$LD_LIBRARY_PATH; '"$PGHome"'/bin/pg_ctl -D '"$PGHome"'/data -o " -p '"$PGPort"'" -l /tmp/logfile -w '"$1"''`
serverStatus=`sudo su postgres -c 'export PATH='"$PLPackage"'/Perl-5.30/bin:$PATH; export LD_LIBRARY_PATH='"$PLPackage"'/Perl-5.30/lib/CORE:$LD_LIBRARY_PATH; export PERL5LIB=/'"$PLPackage"'/Perl-5.30/lib; export PATH='"$PLPackage"'/Tcl-8.6/bin:$PATH;export LD_LIBRARY_PATH='"$PLPackage"'/Tcl-8.6/lib:$LD_LIBRARY_PATH; '"$PGHome"'/bin/pg_ctl -D '"$PGHome"'/data -o " -p '"$PGPort"'" -l /tmp/logfile -w '"$1"''`

return

Expand Down

0 comments on commit 93b6acb

Please sign in to comment.