aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-01 21:15:26 +0100
committeryalh76 <yalh@yahoo.com>2021-03-01 21:15:26 +0100
commitfcef659e0d6af040860828ffdbce5d488cbbd376 (patch)
tree7cfa047ff7cea00dfde46e12d3a39cb94f69358a /scripts/restore
parente70f09a5d3794532f87678ba14a0e82906b36a81 (diff)
downloadmastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.tar.gz
mastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.tar.bz2
mastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.zip
Fix missing variable during upgrade
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore
index e51126f..6744ddb 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -33,7 +33,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
-db_user=$app
+db_user=$(ynh_sanitize_dbid --db_name=$app)
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
#=================================================