1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ethercalc_ynh.git synced 2024-09-03 18:26:36 +02:00

[fix] uninitialized final_path & use skipped_uris

This commit is contained in:
Julien Malik 2014-09-22 21:43:11 +02:00
parent fdd80dc4fb
commit 7f00f380c9

View file

@ -41,7 +41,6 @@ sudo chown www-data /var/log/$app_id/$app_id_forked.log
# Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf*
sed -i "s@YUNOPORT@$port@g" ../conf/nginx.conf*
if [ "$path" = "" ];
then
@ -54,7 +53,7 @@ fi
sudo service nginx reload
if [ "$is_public" = "Yes" ];
then
sudo yunohost app setting ethercalc skipped_regex -v "$final_path/.*"
sudo yunohost app setting ethercalc skipped_uris -v "/"
fi
sudo service $app_id_forked stop
sudo service $app_id_forked start