aboutsummaryrefslogtreecommitdiff
path: root/libexec/app-cat-conf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-27 21:10:30 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-27 21:10:30 +0100
commita4215743db91c4b7050dfda32a670814a101b773 (patch)
tree7466510ff53e0576cfcb2e2433b9300fd0a45901 /libexec/app-cat-conf
parent1e4a96730da70fcfa3b8c153874cbdebad0f9829 (diff)
downloadapp.sh-a4215743db91c4b7050dfda32a670814a101b773.tar.gz
app.sh-a4215743db91c4b7050dfda32a670814a101b773.tar.bz2
app.sh-a4215743db91c4b7050dfda32a670814a101b773.tar.xz
app.sh-a4215743db91c4b7050dfda32a670814a101b773.zip
Defining 'APP_HOME' as where the .app dir is. The tools should use
this value to find files. app-operate/app-operator-pid: These are "functional" now.
Diffstat (limited to 'libexec/app-cat-conf')
-rwxr-xr-xlibexec/app-cat-conf5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/app-cat-conf b/libexec/app-cat-conf
index 857ecaf..c75955b 100755
--- a/libexec/app-cat-conf
+++ b/libexec/app-cat-conf
@@ -40,9 +40,10 @@ done
if [[ $use_default_files == yes ]]
then
- if [ -r ".app/config" ]
+ app_home=${APP_HOME-.}
+ if [ -r "$app_home/.app/config" ]
then
- files+=(".app/config")
+ files+=("$app_home/.app/config")
fi
files+=(${APPSH_DEFAULT_CONFIG-$APPSH_HOME/lib/default-config})