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

Update upgrade

This commit is contained in:
frju365 2017-01-29 16:29:29 +01:00 committed by GitHub
parent 74bac811c7
commit bcc0872fe3

View file

@ -1,14 +1,15 @@
#!/bin/bash #!/bin/bash
source /usr/share/yunohost/helpers
source ./_common source ./_common
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
domain=$(sudo yunohost app setting $app domain) domain=$(sudo ynh_app_setting_set $app domain)
path=$(sudo yunohost app setting $app path) path=$(sudo ynh_app_setting_set $app path)
is_public=$(sudo yunohost app setting $app is_public) is_public=$(sudo ynh_app_setting_set $app is_public)
# Source app helpers
source /usr/share/yunohost/helpers
# Remove trailing "/" for next commands # Remove trailing "/" for next commands
if [[ ! "$path" == "/" ]]; then if [[ ! "$path" == "/" ]]; then
@ -40,8 +41,8 @@ sudo chmod 600 $nginxconf
if [ "$is_public" = "Yes" ]; if [ "$is_public" = "Yes" ];
then then
sudo yunohost app setting $app skipped_uris -d sudo ynh_app_setting_set $app skipped_uris -d
sudo yunohost app setting $app unprotected_uris -v "/" sudo ynh_app_setting_set $app unprotected_uris "/"
fi fi
sudo service nginx reload sudo service nginx reload