From c1fd4d9c263a2e4b6d4c35a5c3db330b686df1fd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 10 Aug 2021 00:03:20 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e39d161..afdbfd9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,6 +52,11 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +if [ -z "$admin" ]; then + admin="default_value" + ynh_app_setting_set --app=$app --key=admin --value=$admin +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all