aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-06 11:50:50 +0100
committerGitHub <noreply@github.com>2021-03-06 11:50:50 +0100
commita7eb98db3fac0697b923072dcd78c1ca04bf0a12 (patch)
tree7cfa047ff7cea00dfde46e12d3a39cb94f69358a /scripts/restore
parent27eafa9fd59c56ab915f03d080980bd1ab156590 (diff)
parent1d258ddb722f29159e506c1c4fd8a8bc052afe89 (diff)
downloadmastodon_ynh-a7eb98db3fac0697b923072dcd78c1ca04bf0a12.tar.gz
mastodon_ynh-a7eb98db3fac0697b923072dcd78c1ca04bf0a12.tar.bz2
mastodon_ynh-a7eb98db3fac0697b923072dcd78c1ca04bf0a12.zip
Merge pull request #260 from YunoHost-Apps/testing
Implement ynh_add_config
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)
#=================================================