From 3e24865c82a99542b7ffe706b508b8ef4f81eb42 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 19 Mar 2023 08:10:57 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 18c5be6..37e742c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,7 +120,7 @@ chown $app:$app "$install_dir/live/data/config.json" # Configure Galène LDAP # If key doesn't exist, create it -if [ -z "$key" ]; then +if [ -z "${key:-}" ]; then key=$(jose jwk gen -i '{"kty":"oct","alg":"HS256"}') ynh_app_setting_set --app=$app --key=key --value=$key fi