فهرست منبع

make same change as install : make private by default

Mickael 7 سال پیش
والد
کامیت
131ed10a16
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      scripts/upgrade

+ 4 - 4
scripts/upgrade

@@ -248,13 +248,13 @@ fi
 # RE-ENABLE SSOWAT
 # RE-ENABLE SSOWAT
 #=================================================
 #=================================================
 ynh_print_info "re-enable SSOWAT"
 ynh_print_info "re-enable SSOWAT"
-# Make app public if necessary
-if [ $is_public -eq 1 ]
+# Make app private if necessary
+if [ $is_public -eq 0 ]
 then
 then
     # unprotected_uris allows SSO credentials to be passed anyway.
     # unprotected_uris allows SSO credentials to be passed anyway.
-    ynh_app_setting_set "$app" unprotected_uris "/"
+    ynh_app_setting_delete "$app" unprotected_uris
 else
 else
-    ynh_app_setting_set "$app" unprotected_uris ""
+    ynh_app_setting_set "$app" unprotected_uris "/"
 fi
 fi
 
 
 systemctl reload nginx
 systemctl reload nginx