From 4815a948a8d2352dd27f8761f7ef86cb6b6346c1 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 10 Oct 2017 16:17:33 +0530 Subject: [PATCH] restore: update SSOWAT configuration --- scripts/restore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/restore b/scripts/restore index d187861..05e6f78 100644 --- a/scripts/restore +++ b/scripts/restore @@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) +is_public=$(ynh_app_setting_get $app is_public) final_path="/var/www/$app" data_path="/home/yunohost.app/$app" db_name="$app" @@ -70,6 +71,15 @@ chown -R www-data: $final_path mkdir -p $data_path chown -R www-data: $data_path +#================================================= +# RESTORE SSOWAT +#================================================= + +if [ "$is_public" = "Yes" ]; +then + ynh_app_setting_set "$app" unprotected_uris "/" +fi + #================================================= # SPECIFIC RESTORATION #=================================================