1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

If password exists, remove it

This commit is contained in:
Kay0u 2019-11-10 10:43:27 +09:00
parent f356f5b8f4
commit 8c93c9984f
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -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
#=================================================