diff --git a/scripts/backup b/scripts/backup index 480e42b..8a74acb 100755 --- a/scripts/backup +++ b/scripts/backup @@ -58,12 +58,12 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # BACKUP OF THE DATABASE #================================================= -if [ $database -eq 1 ]; then +if [ $database -eq mysql ]; then ynh_print_info --message="Backup of the MySQL database..." ynh_mysql_dump_db --database="$db_name" > db.sql -elif [ $database -eq 2 ]; then - # Removing postgresSQL database - ynh_print_info --message="Backup of the postgreSQL database..." +elif [ $database -eq postgressql ]; then + # Removing PostgresSQL database + ynh_print_info --message="Backup of the PostgreSQL database..." ynh_psql_dump_db --database="$db_name" > db.sql fi