diff --git a/check_process b/check_process index 1b6ea41..82ac697 100644 --- a/check_process +++ b/check_process @@ -15,7 +15,7 @@ backup_restore=1 multi_instance=1 port_already_use=0 - change_url=1 + change_url=0 ;;; Levels # If the level 5 (Package linter) is forced to 1. Please add justifications here. Level 5=auto diff --git a/scripts/backup b/scripts/backup index 5466fd1..124f7f0 100644 --- a/scripts/backup +++ b/scripts/backup @@ -56,7 +56,7 @@ ynh_script_progression --message="Backing up php-fpm configuration..." ynh_backup --src_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" #================================================= -# BACKUP THE MYSQL DATABASE +# BACKUP THE POSTGRESQL DATABASE #================================================= ynh_script_progression --message="Backing up the PostgreSQL database..." diff --git a/scripts/install b/scripts/install index 65c22ee..b1a8a47 100644 --- a/scripts/install +++ b/scripts/install @@ -100,7 +100,6 @@ ynh_script_progression --message="Configuring system user..." --weight=2 # Create a system user ynh_system_user_create --username=$app - #================================================= # PHP-FPM CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index e40caf3..726c428 100644 --- a/scripts/restore +++ b/scripts/restore @@ -94,10 +94,12 @@ ynh_install_app_dependencies $pkg_dependencies ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies" #================================================= -# RESTORE THE MYSQL DATABASE +# RESTORE THE POSTGRESQL DATABASE #================================================= ynh_script_progression --message="Restoring the PostgreSQL database..."--weight=47 +ynh_psql_test_if_first_run + db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) ynh_psql_setup_db --db_user=$db_name --db_name=$db_name --db_pwd=$db_pwd ynh_psql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ./db.sql