1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/alltube_ynh.git synced 2024-09-03 18:06:12 +02:00

reverse the removal of older parameter and add of the new permission system

This commit is contained in:
Clément 2020-04-13 10:32:54 +02:00
parent 86f28fc52b
commit e937a6d460

View file

@ -126,17 +126,18 @@ chown -R alltube: $final_path/templates_c/
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
#remove old parameters
unprotected_uris=$(ynh_app_setting_get --app=$app --key=unprotected_uris)
if [ ! -z "$unprotected_uris" ]; then
ynh_app_setting_delete --app=$app --key=unprotected_uris
fi
# Make app public if necessary
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission "main" --add visitors
fi
unprotected_uris=$(ynh_app_setting_get --app=$app --key=unprotected_uris)
if [ ! -z "$unprotected_uris" ]; then
ynh_app_setting_delete --app=$app --key=unprotected_uris
fi
#=================================================
# RELOAD NGINX
#=================================================