diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-17 22:20:46 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-17 22:20:46 +0200 |
commit | 993c9a7807e38b365f48334fff6640e07647af03 (patch) | |
tree | 4347844f2039b29f134e4f729ce38180ad047f8c /app | |
parent | fbc6c0b93a88ac10730dd6f4492750cd32e2b44a (diff) | |
download | app.sh-993c9a7807e38b365f48334fff6640e07647af03.tar.gz app.sh-993c9a7807e38b365f48334fff6640e07647af03.tar.bz2 app.sh-993c9a7807e38b365f48334fff6640e07647af03.tar.xz app.sh-993c9a7807e38b365f48334fff6640e07647af03.zip |
o Renaming BASEDIR to apps, APPSH_BASEDIR to APPSH_APPS.
Diffstat (limited to 'app')
-rwxr-xr-x | app | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -16,15 +16,14 @@ done APPSH_HOME=`dirname "$PRG"` APPSH_HOME=`cd "$APPSH_HOME" && pwd` -if [ -z "$BASEDIR" ] +if [ -z "$APPSH_APPS" ] then - BASEDIR=`dirname $0` - BASEDIR=`cd $BASEDIR; pwd` + apps=`dirname $0` + apps=`cd $apps; pwd` fi -export BASEDIR -mkdir -p $BASEDIR/.app/var/pid -mkdir -p $BASEDIR/.app/var/download +mkdir -p $apps/.app/var/pid +mkdir -p $apps/.app/var/download method_usage() { if [ -n "$1" ] @@ -104,9 +103,9 @@ main() { fi case "$method" in - instance) method_instance "$name" "$instance" "$@" ;; - conf) method_conf "$name" "$instance" "$@" ;; - operate) method_operate "$name" "$instance" "$@" ;; + instance) method_instance "$name" "$instance" "$@" ;; + conf) method_conf "$name" "$instance" "$@" ;; + operate) method_operate "$name" "$instance" "$@" ;; *) if [ -z "$method" ] then |