From d2126406d8061bb462c5c376b46ccff6e09dd0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 5 Jan 2024 17:15:51 +0100 Subject: [PATCH] fix upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 420dbcc..880799f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,6 +25,12 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +if [ -z "${public_key+x}" ]; then + # Missing setting ? + public_key="" + ynh_app_setting_set --app="$app" --key=public_key --value="$public_key" +fi + #================================================= # INSTALL NODEJS #=================================================