-BASE_PATH="$HOME/apps"
-STORAGE_SUFFIX="/public"
+if [ -z "$BASE_APPLICATION_PATH" ]; then
+ BASE_APPLICATION_PATH="$HOME/apps"
+fi
+if [ -z "$STORAGE_SUFFIX" ]; then
+ STORAGE_SUFFIX="/public"
+fi
if [ -z "$site_path" ]; then
# path where site gets checked out, in some arcane manner, and which happens to be
# above the path where we put webroot (in the storage suffix, if defined).
if [ -z "$site_path" ]; then
# path where site gets checked out, in some arcane manner, and which happens to be
# above the path where we put webroot (in the storage suffix, if defined).
# no slash between appname and suffix, in case suffix is empty.
local full_path="${path_above}${STORAGE_SUFFIX}"
#echo really full path is $full_path
# no slash between appname and suffix, in case suffix is empty.
local full_path="${path_above}${STORAGE_SUFFIX}"
#echo really full path is $full_path
- # make sure the base path for storage of all the apps for this user exists.
- local full_path="$BASE_PATH/$our_app"
+ # make sure the path for storage this app exists for the user.
+ local full_path="$BASE_APPLICATION_PATH/$our_app"
if [ ! -d "$full_path" ]; then
mkdir -p $full_path
test_or_die "The app storage path could not be created.\n Path in question is: $full_path"
if [ ! -d "$full_path" ]; then
mkdir -p $full_path
test_or_die "The app storage path could not be created.\n Path in question is: $full_path"
appropriate name for a file-system compatible folder name. There is an
optional third parameter (3) the path for site storage. If the site path
is not provided, we'll use this path:
appropriate name for a file-system compatible folder name. There is an
optional third parameter (3) the path for site storage. If the site path
is not provided, we'll use this path: