From 666c83b9b597801fd5e7ea0e53ab6a4b0b35f002 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Mon, 1 Nov 2021 20:43:03 +0300 Subject: [PATCH] disable db in other scripts --- scripts/remove | 12 ++++++------ scripts/restore | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/remove b/scripts/remove index ec0cb08..ed6365b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -18,8 +18,8 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) port=$(ynh_app_setting_get --app=$app --key=port) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_user=$db_name +# db_name=$(ynh_app_setting_get --app=$app --key=db_name) +# db_user=$db_name final_path=$(ynh_app_setting_get --app=$app --key=final_path) datadir=$(ynh_app_setting_get --app=$app --key=datadir) @@ -55,10 +55,10 @@ ynh_remove_logrotate #================================================= # REMOVE THE MYSQL DATABASE #================================================= -ynh_script_progression --message="Removing the MySQL database..." --time --weight=1 +# ynh_script_progression --message="Removing the MySQL database..." --time --weight=1 # Remove a database if it exists, along with the associated user -ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name +# ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name #================================================= # REMOVE DEPENDENCIES @@ -98,10 +98,10 @@ ynh_remove_nginx_config #================================================= # REMOVE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Removing PHP-FPM configuration..." --time --weight=1 +# ynh_script_progression --message="Removing PHP-FPM configuration..." --time --weight=1 # Remove the dedicated PHP-FPM config -ynh_remove_fpm_config +# ynh_remove_fpm_config #================================================= # CLOSE A PORT diff --git a/scripts/restore b/scripts/restore index f9a46dc..c4b44f6 100755 --- a/scripts/restore +++ b/scripts/restore @@ -126,11 +126,11 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= # RESTORE THE MYSQL DATABASE #================================================= -ynh_script_progression --message="Restoring the MySQL database..." --time --weight=1 +# ynh_script_progression --message="Restoring the MySQL database..." --time --weight=1 -db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) -ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd -ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +# db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) +# ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd +# ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql #================================================= # RESTORE VARIOUS FILES