[PATCH] Fixed installation with relative destination path

Wald Commits scm-commit at wald.intevation.org
Thu Sep 18 18:31:20 CEST 2014


# HG changeset patch
# User Sascha Wilde <wilde at intevation.de>
# Date 1411057854 -7200
# Node ID b67681a61e3e472780dc6bbc2e83cf5e22f8e762
# Parent  a974b61a5ccec932121b38e69800b68b1803bf1a
Fixed installation with relative destination path.

diff -r a974b61a5cce -r b67681a61e3e packaging/linux-installer.inc
--- 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"


More information about the Trustbridge-commits mailing list