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 #=================================================