From 9d53cbbbe338bf4b3ef0ebd4817b0a1e8ff46d6e Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 17 Jan 2022 01:22:36 +0000 Subject: [PATCH] fix --- scripts/_common.sh | 1 - scripts/upgrade | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index bdfd5f7..032b5ea 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,6 @@ #================================================= extensions_gallery="{\"serviceUrl\": \"https://open-vsx.org/vscode/gallery\",\"itemUrl\": \"https://open-vsx.org/vscode/item\"}" -auth="none" #================================================= # PERSONAL HELPERS diff --git a/scripts/upgrade b/scripts/upgrade index 46ed0e5..54093ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,6 +83,14 @@ then ynh_app_setting_delete --app=$app --key="enable_proposed_api" fi + if [ "$hashed_password" ] + then + auth="password" + else + auth="none" + fi + ynh_app_setting_get --app=$app --key=auth --value=$auth + ynh_secure_remove --file=$final_path mkdir -p $final_path fi