1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/woodpecker_ynh.git synced 2024-09-03 20:35:57 +02:00

This is postgres, not mysql

This commit is contained in:
Salamandar 2023-11-05 21:26:04 +01:00 committed by Salamandar
parent 6537f682cd
commit 7b972d59a0
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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