From 4bb0e3976eed2bf6571d5d39cb039dde1a51b3cb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 24 Jun 2021 23:48:34 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 97c3f6b..6cd50e5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,6 +69,12 @@ if [ -z "$path_url" ]; then ynh_app_setting_set --app=$app --key=path --value=$path_url fi +# If final_path doesn't exist, create it +if [ -z "$language" ]; then + language="en" + ynh_app_setting_set --app=$app --key=language --value=$language +fi + # Create the log file is not already existing if [ ! -f "$final_path/var/logs/prod.log" ] then