From fa2b2f973fe2fc810788fc5c03be72b27d8b875c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 5 Jan 2024 19:04:33 +0100 Subject: [PATCH] fix upgrade missing key --- scripts/upgrade | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 880799f..65500f2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,11 +25,15 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +# Missing settings ? if [ -z "${public_key+x}" ]; then - # Missing setting ? public_key="" ynh_app_setting_set --app="$app" --key=public_key --value="$public_key" fi +if [ -z "${install_chromium+x}" ]; then + install_chromium="false" + ynh_app_setting_set --app="$app" --key=install_chromium --value="$install_chromium" +fi #================================================= # INSTALL NODEJS @@ -70,7 +74,7 @@ fi #================================================= # Install chromium #================================================= -if [ $install_chromium -eq 1 ]; then +if [ "$install_chromium" -eq 1 ]; then ynh_script_progression --message="Upgrading Chromium..." --weight=8 # Remove old versions of chrome