aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-17 22:20:46 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-17 22:20:46 +0200
commit993c9a7807e38b365f48334fff6640e07647af03 (patch)
tree4347844f2039b29f134e4f729ce38180ad047f8c /app
parentfbc6c0b93a88ac10730dd6f4492750cd32e2b44a (diff)
downloadapp.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-xapp17
1 files changed, 8 insertions, 9 deletions
diff --git a/app b/app
index f02f11d..84f757d 100755
--- a/app
+++ b/app
@@ -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