From 7f56595903862456305996caaf52b96e0f9c00d0 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:43:10 +0100 Subject: [PATCH] Update restore --- scripts/restore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/restore b/scripts/restore index e8ef107..0fea344 100644 --- a/scripts/restore +++ b/scripts/restore @@ -52,6 +52,13 @@ ynh_script_progression --message="Restoring the NGINX web server configuration.. ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# RESTORE THE POSTGRESQL DATABASE +#================================================= +ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=1 + +ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name + #================================================= # SECURE FILES AND DIRECTORIES #=================================================