1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00

[enh] set correct variable for nginx conf

This commit is contained in:
Laurent Peuch 2015-09-27 01:36:15 +02:00
parent 8083448165
commit 90a076f768

View file

@ -26,3 +26,9 @@ sudo yunohost app setting noalyss version -v "6.9.0.0"
# Reload Nginx and regenerate SSOwat conf
sudo service nginx reload
sudo yunohost app ssowatconf
if [[ "$path" == "" ]]; then
sed -i "s@LOCATIONTOCHANGE@/@g" ../conf/nginx.conf
else
sed -i "s@LOCATIONTOCHANGE@$path@g" ../conf/nginx.conf
fi