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 #=================================================