From 7e681d3bc8e2e5af6210cc1fd537f5b16b9814a5 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:57:16 +0100 Subject: [PATCH] Update upgrade: auto_upgrade_apps setting not initialized during upgrade if it doesnt exist, making config panel crash when upgrading from old versions ... --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 280eb7d..618cbea 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -19,6 +19,10 @@ if [ -z "${phpflags:-}" ]; then ynh_app_setting_set --app=$app --key=phpflags --value=$phpflags fi +if [ -z "${auto_upgrade_apps:-}" ]; then + ynh_app_setting_set --app=$app --key=auto_upgrade_apps --value="manual" +fi + # Delete existing ini configuration file (backward compatibility) if [ -f /etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini ]; then ynh_secure_remove --file=/etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini