diff options
| author | nemsia <nemsia@nemsia.org> | 2018-06-12 22:53:03 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2018-06-12 22:53:03 +0200 |
| commit | ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4 (patch) | |
| tree | 11d63d1cc387ea9ad3552bffb70fe50df16f9794 /scripts/restore | |
| parent | f102d956921286ba066473a325b18b1416af030a (diff) | |
| download | mastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.tar.gz mastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.tar.bz2 mastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.zip | |
Change db_name on all scripts
to mastodon_production
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
