From b5824340b01e7228732d62de844890feafeb2180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 5 Nov 2023 21:26:04 +0100 Subject: [PATCH] This is postgres, not mysql --- scripts/backup | 4 ++-- scripts/restore | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index b976e39..fc79009 100755 --- a/scripts/backup +++ b/scripts/backup @@ -49,9 +49,9 @@ ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= -# BACKUP THE MYSQL DATABASE +# BACKUP THE DATABASE #================================================= -ynh_print_info --message="Backing up the MySQL database..." +ynh_print_info --message="Backing up the database..." ynh_psql_dump_db --database="$db_name" > db.sql diff --git a/scripts/restore b/scripts/restore index b675aec..c75a789 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,9 +20,9 @@ ynh_restore_file --origin_path="$install_dir" chown -R "$app:www-data" "$install_dir" #================================================= -# RESTORE THE MYSQL DATABASE +# RESTORE THE DATABASE #================================================= -ynh_script_progression --message="Restoring the MySQL database..." --weight=1 +ynh_script_progression --message="Restoring the database..." --weight=1 ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql