diff options
Diffstat (limited to 'system/postgresql/doinst.sh')
-rw-r--r-- | system/postgresql/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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 +) + |