From b81b97324fb0fd50f5a9e29c974c25744a7f1e2d Mon Sep 17 00:00:00 2001 From: Adis Nezirovic Date: Sat, 26 Oct 2013 00:40:32 -0500 Subject: system/postgresql: Updated for version 9.3.0. Signed-off-by: Robby Workman --- system/postgresql/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'system/postgresql/doinst.sh') diff --git a/system/postgresql/doinst.sh b/system/postgresql/doinst.sh index d9f098a6ff..3a14eb39de 100644 --- a/system/postgresql/doinst.sh +++ b/system/postgresql/doinst.sh @@ -24,3 +24,17 @@ preserve_perms() { preserve_perms etc/rc.d/rc.postgresql.new config etc/logrotate.d/postgresql.new +# Create default program symlinks in /usr/bin +( + cd usr/bin + for pg_binary in ../lib@LIBDIRSUFFIX@/postgresql/@PG_VERSION@/bin/*; do + pg_prog=$(basename $pg_binary) + if [ -L $pg_prog ]; then + ln -sf $pg_binary + elif [ ! -e $pg_prog ]; then + # make sure we don't overwrite actual binaries + ln -s $pg_binary + fi + done +) + -- cgit v1.2.3