From 87d03acccfc2344f58f7165b5a09c1e5e649bc0b Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 8 May 2017 17:18:41 +0200 Subject: [PATCH] [fix] Set ssowat config --- scripts/install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f6ca648..205522c 100644 --- a/scripts/install +++ b/scripts/install @@ -43,8 +43,14 @@ ynh_nginx_config ynh_fpm_config # Set ssowat config -if [[ $is_public -eq 0 ]]; then - ynh_app_setting_delete $app skipped_uris +if [ $is_public -eq 0 ] +then + ynh_app_setting_delete $app skipped_uris # Delete public access +fi + +if [ $is_public -eq 1 ] +then + ynh_app_setting_set $app skipped_uris "/" # Make app public if necessary fi sudo systemctl reload nginx