1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leed_ynh.git synced 2024-09-03 19:26:32 +02:00

Burn is_public ... and don't tweak main permission during upgrade

This commit is contained in:
Alexandre Aubin 2021-12-05 00:38:17 +01:00 committed by GitHub
parent eb37d9776b
commit 07f5813ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,6 @@ admin=$(ynh_app_setting_get --app=$app --key=admin)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
overwrite_nginx=$(ynh_app_setting_get --app=$app --key=overwrite_nginx)
overwrite_phpfpm=$(ynh_app_setting_get --app=$app --key=overwrite_phpfpm)
@ -197,15 +196,8 @@ ynh_add_config --template="../conf/cron_leed" --destination="/etc/cron.d/$app"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading Leed with cURL..." --weight=4
# Set the app as temporarily public for curl call
ynh_permission_update --permission="main" --add="visitors"
# Start the upgrade procedure of leed.
ynh_local_curl "/"
# Make app public if necessary
if [ $is_public -eq 0 ]
then
ynh_permission_update --permission="main" --remove="visitors"
fi
fi
#=================================================