From 1dcaf5ded0e6bc8ab223660fa1477a4e42d6897b Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 19 Apr 2017 19:23:23 +0200 Subject: [PATCH] Restore logrotate config fix https://github.com/YunoHost-Apps/lutim_ynh/issues/15 --- scripts/restore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/restore b/scripts/restore index 21cb9ed..5a86fc6 100644 --- a/scripts/restore +++ b/scripts/restore @@ -108,6 +108,12 @@ sudo mkdir -p /var/log/$app/ sudo touch /var/log/$app/production.log sudo chown $app: -R /var/log/$app +#================================================= +# RESTORE THE LOGROTATE CONFIGURATION +#================================================= + +sudo cp -a ./logrotate /etc/logrotate.d/$app + #================================================= # START LUTIM #=================================================