From f47ff792384bcffffd9921095ec6e35e4ec64f01 Mon Sep 17 00:00:00 2001 From: anmol Date: Thu, 15 Oct 2020 01:29:36 +0530 Subject: [PATCH] Added php-pgsql dependency and typo in restore and backup --- scripts/_common.sh | 2 +- scripts/backup | 2 +- scripts/restore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 49b6cf97..1f7e8638 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ # dependencies used by the app YNH_PHP_VERSION="7.3" -extra_php_dependencies="php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip" +extra_php_dependencies="php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-gd" # dependencies used by the app pkg_dependencies="postgresql postgresql-contrib" diff --git a/scripts/backup b/scripts/backup index 93127ce8..40bc780b 100644 --- a/scripts/backup +++ b/scripts/backup @@ -59,7 +59,7 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # BACKUP OF THE DATABASE #================================================= -ynh_script_progression --message="Backing up the MySQL database..." - +ynh_script_progression --message="Backing up the MySQL database..." if [ $database -eq 1 ]; then ynh_script_progression --message="Backup of the MySQL database..." diff --git a/scripts/restore b/scripts/restore index 65fc17bb..cfaefc1d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -68,7 +68,7 @@ ynh_restore_file --origin_path="$final_path" ynh_script_progression --message="Restoring the MySQL database..." --time if [ $database -eq 1 ]; then - ynh_script_progression --message="Removing MySQL database..." + ynh_script_progression --message="Restoring MySQL database..." db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name --db_pwd=$db_pwd ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ./db.sql