diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-18 15:12:33 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-18 15:12:33 +0200 |
commit | 64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7 (patch) | |
tree | 28ee4b9c443b2e71f825f820f4e8e09e4345004c /app | |
parent | 190fbfc45fb1df608a34bd775b84564e872ab4dc (diff) | |
download | app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.gz app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.bz2 app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.xz app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.zip |
o Changing the current symlink before running postinstall.
Diffstat (limited to 'app')
-rwxr-xr-x | app | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -16,11 +16,18 @@ done APPSH_HOME=`dirname "$PRG"` APPSH_HOME=`cd "$APPSH_HOME" && pwd` -if [ -z "$APPSH_APPS" ] -then - apps=`dirname $0` - apps=`cd $apps; pwd` -fi +# Not sure this is useful +#if [ -z "$APPSH_APPS" ] +#then +# apps=`dirname $0` +# apps=`cd $apps; pwd` +#fi + +apps=`dirname $0` +apps=`cd $apps; pwd` + +# Ideally this should just do "cd /" to ensure that all paths are useful. +cd $apps mkdir -p $apps/.app/var/pid mkdir -p $apps/.app/var/download |