projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweak 4
[feisty_meow.git]
/
scripts
/
system
/
add_apache_site.sh
diff --git
a/scripts/system/add_apache_site.sh
b/scripts/system/add_apache_site.sh
index 909604bbe118b65adc2e590da8c5a1933e52b29e..6b0956347d17406dc8ddc28e19354e89f1d6cea1 100644
(file)
--- a/
scripts/system/add_apache_site.sh
+++ b/
scripts/system/add_apache_site.sh
@@
-96,7
+96,7
@@
function maybe_create_site_storage()
local full_path="$BASE_PATH/$our_app"
if [ ! -d "$full_path" ]; then
mkdir -p $full_path
local full_path="$BASE_PATH/$our_app"
if [ ! -d "$full_path" ]; then
mkdir -p $full_path
-
check_result
"The app storage path could not be created.\n Path in question is: $full_path"
+
test_or_die
"The app storage path could not be created.\n Path in question is: $full_path"
fi
# now give the web server some access to the folder. this is crucial since the folders
fi
# now give the web server some access to the folder. this is crucial since the folders
@@
-108,10
+108,10
@@
function maybe_create_site_storage()
while [[ $chow_path != $HOME ]]; do
echo chow path is now $chow_path
chmod g+rx "$chow_path"
while [[ $chow_path != $HOME ]]; do
echo chow path is now $chow_path
chmod g+rx "$chow_path"
-
check_result
"Failed to add group permissions on the path: $chow_path"
+
test_or_die
"Failed to add group permissions on the path: $chow_path"
# reassert the user's ownership of any directories we might have just created.
chown $(logname) "$chow_path"
# reassert the user's ownership of any directories we might have just created.
chown $(logname) "$chow_path"
-
check_result
"changing ownership to user failed on the path: $chow_path"
+
test_or_die
"changing ownership to user failed on the path: $chow_path"
chow_path="$(dirname "$chow_path")"
done
}
chow_path="$(dirname "$chow_path")"
done
}