aboutsummaryrefslogtreecommitdiff
path: root/system/postgresql/doinst.sh
diff options
context:
space:
mode:
authorAdis Nezirovic <adis_at_linux.org.ba>2013-10-26 00:40:32 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-27 23:38:51 -0500
commitb81b97324fb0fd50f5a9e29c974c25744a7f1e2d (patch)
treea29383f2e861b9a67efcb670c8c72fd9832425fd /system/postgresql/doinst.sh
parent319f898b5f28a560edd68c09dcc7c8facecf0280 (diff)
system/postgresql: Updated for version 9.3.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/postgresql/doinst.sh')
-rw-r--r--system/postgresql/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/postgresql/doinst.sh b/system/postgresql/doinst.sh
index d9f098a6ff758..3a14eb39de1d4 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
+)
+