From 8c93c9984f4454cafd628c7d978e1cfbdad4388f Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sun, 10 Nov 2019 10:43:27 +0900 Subject: [PATCH] If password exists, remove it --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b077df9..ebec522 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -23,6 +23,7 @@ is_public=$(ynh_app_setting_get $app is_public) final_path=$(ynh_app_setting_get $app final_path) db_name=$(ynh_app_setting_get $app db_name) db_pwd=$(ynh_app_setting_get $app mysqlpwd) +password=$(ynh_app_setting_get $app password) master_key=$(ynh_app_setting_get $app master_key) #================================================= @@ -51,6 +52,11 @@ if [ -z $final_path ]; then ynh_app_setting_set $app final_path $final_path fi +# If password exists, remove it +if [ ! -z $password ]; then + ynh_app_setting_delete $app password +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================