From 1172d4f9241f345a21685190c673da8375fc307a Mon Sep 17 00:00:00 2001 From: Kayou Date: Sun, 3 Feb 2019 19:31:09 +0100 Subject: [PATCH] Fix old db_pwd --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 63c311c..dc36d3d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,6 +53,12 @@ then # Si final_path n'est pas renseigné dans la config yunohost, cas d'ancien final_path=/var/www/$app fi +if [ -z "$db_pwd" ]; then + db_pwd=$(ynh_app_setting_get $app db_pwd) # Fix old db_pwd + ynh_app_setting_delete $app db_pwd + ynh_app_setting_set $app psqlpwd $db_pwd +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================