From 3fde2b69f7f996db32a69f1cc7bf0d46bb1bc7c9 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 01:08:52 +0300 Subject: [PATCH] disable unneeded script stuff --- scripts/backup | 14 +++++++------- scripts/remove | 2 +- scripts/restore | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/backup b/scripts/backup index 20685be..0a51172 100755 --- a/scripts/backup +++ b/scripts/backup @@ -30,8 +30,8 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +# db_name=$(ynh_app_setting_get --app=$app --key=db_name) +# phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= @@ -93,19 +93,19 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" # BACKUP VARIOUS FILES #================================================= -ynh_backup --src_path="/etc/cron.d/$app" +# ynh_backup --src_path="/etc/cron.d/$app" ynh_backup --src_path="/etc/$app/" #================================================= # BACKUP THE MYSQL DATABASE #================================================= -ynh_print_info --message="Backing up the MySQL database..." +# ynh_print_info --message="Backing up the MySQL database..." -### (However, things like MySQL dumps *do* take some time to run, though the -### copy of the generated dump to the archive still happens later) +# ### (However, things like MySQL dumps *do* take some time to run, though the +# ### copy of the generated dump to the archive still happens later) -ynh_mysql_dump_db --database="$db_name" > db.sql +# ynh_mysql_dump_db --database="$db_name" > db.sql #================================================= # END OF SCRIPT diff --git a/scripts/remove b/scripts/remove index 33e040a..3fd874a 100755 --- a/scripts/remove +++ b/scripts/remove @@ -136,7 +136,7 @@ ynh_remove_nginx_config ynh_script_progression --message="Removing various files..." --time --weight=1 # Remove a cron file -ynh_secure_remove --file="/etc/cron.d/$app" +# ynh_secure_remove --file="/etc/cron.d/$app" # Remove a directory securely ynh_secure_remove --file="/etc/$app" diff --git a/scripts/restore b/scripts/restore index cd0e5e0..15a59ca 100755 --- a/scripts/restore +++ b/scripts/restore @@ -137,7 +137,7 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= ynh_script_progression --message="Restoring various files..." --time --weight=1 -ynh_restore_file --origin_path="/etc/cron.d/$app" +# ynh_restore_file --origin_path="/etc/cron.d/$app" ynh_restore_file --origin_path="/etc/$app/"