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

No need to create the 'maintenance_mode' thing because there's a custom getter ...

This commit is contained in:
Alexandre Aubin 2024-01-09 19:45:52 +01:00
parent fe63ef6dfc
commit 07ed2f2ecd
2 changed files with 0 additions and 8 deletions

View file

@ -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
#=================================================

View file

@ -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"