From 04034afa931a1efc381cbde124222d59058dd4ab Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 16 Jan 2024 04:44:18 +0100 Subject: [PATCH] fix oidc_link_existing for already installed gts --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index ff342b0..7b2d4e0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -267,6 +267,12 @@ then ynh_app_setting_set --app="$app" --key=oidc_client_secret --value="$oidc_link_existing" fi +# fix a dumb "i set the setting to the wrong key in the past so i need to fix this shit" +if [ -z "$oidc_link_existing" ]; then + oidc_link_existing="false" + ynh_app_setting_set --app="$app" --key=oidc_client_secret --value="$oidc_link_existing" +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================