From 7f7625433f5f1f8342762171a85a8c32afb8919d Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 4 Feb 2019 00:51:23 +0100 Subject: [PATCH] Trying to fix the restore script --- scripts/restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 4014a81..f444bdc 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,8 +66,9 @@ ynh_restore_file "$final_path" #================================================= db_pwd=$(ynh_app_setting_get $app psqlpwd) +ynh_psql_test_if_first_run ynh_psql_setup_db $db_name $db_name $db_pwd -ynh_psql_connect_as $db_name $db_pwd < ./db.sql +ynh_psql_connect_as $db_name $db_pwd $db_name < ./db.sql #================================================= # SPECIFIC RESTORATION