From 3a3e8ac3295ac8189b7572b75c7b4e258d3091cc Mon Sep 17 00:00:00 2001 From: anmol Date: Thu, 8 Nov 2018 00:37:29 +0530 Subject: [PATCH] Fix logrotate in backup and restore --- scripts/backup | 2 +- scripts/restore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 49d2dbb..2cc1bf0 100644 --- a/scripts/backup +++ b/scripts/backup @@ -54,7 +54,7 @@ ynh_backup "/etc/php5/fpm/pool.d/$app.conf" # BACKUP LOGROTATE #================================================= -ynh_backup "$final_path/data/log.txt" +ynh_backup "/etc/logrotate.d/$app" #================================================= # BACKUP FAIL2BAN CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 984086c..f5b5c3c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,7 +88,7 @@ ynh_install_app_dependencies 'php5-cli|php-cli' php-gettext 'php5-curl|php-curl' # RESTORE THE LOGROTATE CONFIGURATION #================================================= -ynh_restore_file "$final_path/data/log.txt" +ynh_restore_file "/etc/logrotate.d/$app" #================================================= # RESTORE FAIL2BAN CONFIGURATION