diff options
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 |
