aboutsummaryrefslogtreecommitdiff
path: root/.app/lib/app-common
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/lib/app-common
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/lib/app-common')
-rw-r--r--.app/lib/app-common10
1 files changed, 5 insertions, 5 deletions
diff --git a/.app/lib/app-common b/.app/lib/app-common
index 584e053..ade49c7 100644
--- a/.app/lib/app-common
+++ b/.app/lib/app-common
@@ -37,7 +37,7 @@ list_apps() {
filter_instnace=$1; shift
vars="$@"
- sort $BASEDIR/.app/var/list | while read line
+ sort $apps/.app/var/list | while read line
do
echo $line | (IFS=:; while read name instance version junk
do
@@ -78,13 +78,13 @@ find_current_version() {
name=$1
instance=$2
- if [ ! -L $BASEDIR/$name/$instance/current ]
+ if [ ! -L $apps/$name/$instance/current ]
then
return 0
fi
(
- cd $BASEDIR/$name/$instance
+ cd $apps/$name/$instance
ls -l current | sed -n "s,.* current -> versions/\(.*\)/root,\1,p"
)
}
@@ -93,13 +93,13 @@ find_versions() {
name=$1
instance=$2
- if [ ! -d $BASEDIR/$name/$instance/versions ]
+ if [ ! -d $apps/$name/$instance/versions ]
then
return 0
fi
(
- cd $BASEDIR/$name/$instance/versions
+ cd $apps/$name/$instance/versions
ls -1d *
)
}