From 83394391359f4e49eb62a2d5f19f6e7e53977b13 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 17 Aug 2023 11:05:13 +0200 Subject: [PATCH] Fix bad variable allocation --- scripts/upgrade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 51369cf..b895c34 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,9 +56,8 @@ if [ -z "$phpversion" ]; then ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion fi -echo Init the custom error variable # If custom_error_file doesn't exist, create it. We assume it is the default system one. -if [ -n "$(ynh_app_setting_get --app=$app --key=custom_error_file)" ]; then +if [ -z "$custom_error_file" ]; then echo Variable not existing, create-it custom_error_file=$(ynh_app_setting_get --app=$app --key=custom_error_file) else