From ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4 Mon Sep 17 00:00:00 2001 From: nemsia Date: Tue, 12 Jun 2018 22:53:03 +0200 Subject: Change db_name on all scripts to mastodon_production --- scripts/restore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/restore') diff --git a/scripts/restore b/scripts/restore index 0d32504..b41b9cd 100644 --- a/scripts/restore +++ b/scripts/restore @@ -124,7 +124,11 @@ ynh_install_app_dependencies \ # Restore PostgreSQL database db_user=$(ynh_sanitize_dbid "$app") -db_name=$(ynh_sanitize_dbid "$app") +db_name=$(ynh_app_setting_get "$app" db_name) +if [ -z "$db_name" ]; then + db_name="${app}_production" + ynh_app_setting_set "$app" db_name "$db_name" +fi db_pwd=$(ynh_app_setting_get "$app" db_pwd) ynh_psql_test_if_first_run -- cgit v1.2.3-70-g09d2