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