diff packaging/linux-installer.inc @ 1161:b67681a61e3e

Fixed installation with relative destination path.
author Sascha Wilde <wilde@intevation.de>
date Thu, 18 Sep 2014 18:30:54 +0200
parents 46f025a1450c
children d51ae656cfd6
line wrap: on
line diff
--- a/packaging/linux-installer.inc	Thu Sep 18 18:00:34 2014 +0200
+++ b/packaging/linux-installer.inc	Thu Sep 18 18:30:54 2014 +0200
@@ -316,6 +316,7 @@
 provide_uudecode_maybe
 
 getxt "unpacking files ...\n"
+OLDWD="$PWD"
 cd "${instcfg[PREFIX]}"
 
 set +u
@@ -325,6 +326,8 @@
 ###SHAR###
 # ----------------------------------------------------------------------
 
+cd "$OLDWD"
+
 getxt "Preparing trustbridge-tray-starter ...\n"
 sed -i "/^PREFIX=/c\PREFIX='${instcfg[PREFIX]}'" \
     "${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh"

http://wald.intevation.org/projects/trustbridge/