From c8a0904331948148ce281461fafc3082da9d08f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:56:08 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 50fd819..7fbec63 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,17 +29,17 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 -if [ -z "$registration_enabled" ]; then +if [ -z "${registration_enabled:-}" ]; then registration_enabled="true" ynh_app_setting_set --app=$app --key=registration_enabled --value=$registration_enabled fi -if [ -z "$login_enabled" ]; then +if [ -z "${login_enabled:-}" ]; then login_enabled="true" ynh_app_setting_set --app=$app --key=login_enabled --value=$login_enabled fi -if [ -z "$captcha_enabled" ]; then +if [ -z "${captcha_enabled:-}" ]; then captcha_enabled="true" ynh_app_setting_set --app=$app --key=captcha_enabled --value=$captcha_enabled fi