From 6d3b6e3d20b32d1139a5f64af1d9f75a836307c6 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 11 Nov 2021 23:14:13 +0700 Subject: [PATCH] Remove & Restore --- scripts/remove | 2 +- scripts/restore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index ab6328f..7338e14 100755 --- a/scripts/remove +++ b/scripts/remove @@ -67,7 +67,7 @@ ynh_remove_logrotate ynh_script_progression --message="Removing the PostgreSQL database..." # Remove a database if it exists, along with the associated user -ynh_psql_remove_db --db_user=$db_user --db_name=$db_name +ynh_psql_remove_db --db_user=$db_name --db_name=$db_name #================================================= # REMOVE DEPENDENCIES diff --git a/scripts/restore b/scripts/restore index 7351504..4444e13 100755 --- a/scripts/restore +++ b/scripts/restore @@ -101,7 +101,7 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=6 ynh_psql_test_if_first_run -ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd +ynh_psql_setup_db --db_user=$db_name --db_name=$db_name ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name #=================================================