From b5a7e543ffb1dc6667a31aed55cb67ebb19b8d6e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 4 Jun 2020 17:38:27 +0200 Subject: [PATCH] Bored of the A CRON FILE step because in the example, there is more than juste the cron file in the remove script --- scripts/backup | 4 +++- scripts/remove | 2 +- scripts/restore | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index b1a1241..3e9328e 100755 --- a/scripts/backup +++ b/scripts/backup @@ -83,11 +83,13 @@ ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= -# BACKUP A CRON FILE +# BACKUP VARIOUS FILES #================================================= ynh_backup --src_path="/etc/cron.d/$app" +ynh_backup --src_path="/etc/$app/" + #================================================= # BACKUP THE MYSQL DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index 9d27c8b..b35ca81 100755 --- a/scripts/remove +++ b/scripts/remove @@ -112,7 +112,7 @@ ynh_remove_fail2ban_config #================================================= # SPECIFIC REMOVE #================================================= -# REMOVE THE CRON FILE +# REMOVE VARIOUS FILES #================================================= # Remove a cron file diff --git a/scripts/restore b/scripts/restore index 323afa0..26b7697 100755 --- a/scripts/restore +++ b/scripts/restore @@ -131,11 +131,13 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" #================================================= -# RESTORE THE CRON FILE +# RESTORE VARIOUS FILES #================================================= ynh_restore_file --origin_path="/etc/cron.d/$app" +ynh_restore_file --origin_path="/etc/$app/" + #================================================= # RESTORE THE LOGROTATE CONFIGURATION #=================================================