changeset 1161:b67681a61e3e

Fixed installation with relative destination path.
author Sascha Wilde <wilde@intevation.de>
date Thu, 18 Sep 2014 18:30:54 +0200
parents a974b61a5cce
children 2a1206932f53
files packaging/linux-installer.inc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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/