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