1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

unprotected_uris is deleted by the core

This commit is contained in:
Kay0u 2021-03-01 13:09:38 +01:00
parent fa5d488abf
commit 71c9cbf607
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -27,8 +27,6 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage)
unprotected_uris=$(ynh_app_setting_get $app unprotected_uris)
#=================================================
# CHECK VERSION
#=================================================
@ -67,13 +65,6 @@ if [ -z "$fpm_usage" ]; then
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi
# Delete unprotected_uris if it exists
if [ -n "$unprotected_uris" ]; then
ynh_app_setting_delete $app unprotected_uris
# Delete unprotected_uris implicitly remove visitors, add it again.
ynh_permission_update --permission "main" --add "visitors"
fi
# If phpversion doesn't exist, create it
if [ -z "$phpversion" ]; then
phpversion="$YNH_PHP_VERSION"