From 07ed2f2ecd56041e56117a5ba331dc9b47b01e82 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 9 Jan 2024 19:45:52 +0100 Subject: [PATCH] No need to create the 'maintenance_mode' thing because there's a custom getter ... --- scripts/install | 2 -- scripts/upgrade | 6 ------ 2 files changed, 8 deletions(-) diff --git a/scripts/install b/scripts/install index fe87cb8..6e5858a 100755 --- a/scripts/install +++ b/scripts/install @@ -4,10 +4,8 @@ source _common.sh source /usr/share/yunohost/helpers source _ynh_mysql_connect_as.sh -maintenance_mode=0 phpflags="--define apc.enable_cli=1" -ynh_app_setting_set --app=$app --key=maintenance_mode --value=$maintenance_mode ynh_app_setting_set --app=$app --key=phpflags --value=$phpflags #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f84cb99..6e082f1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,12 +13,6 @@ ynh_script_progression --message="Ensuring downward compatibility..." # Remove the option backup_core_only if it's in the settings.yml file ynh_app_setting_delete --app=$app --key=backup_core_only -# If maintenance_mode doesn't exist, create it -if [ -z "${maintenance_mode:-}" ]; then - maintenance_mode=0 - ynh_app_setting_set --app=$app --key=maintenance_mode --value=$maintenance_mode -fi - # If phpflags doesn't exist, create it if [ -z "${phpflags:-}" ]; then phpflags="--define apc.enable_cli=1"