From 9ddb806db3987a0bf1ecc44f974a5cc54e505b6b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 16:40:48 +0200 Subject: [PATCH] SETUP LOGROTATE --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index 25c5937..e48304b 100644 --- a/scripts/install +++ b/scripts/install @@ -129,6 +129,11 @@ sudo systemctl enable syncthing@$SYNCUSER.service sudo yunohost service add syncthing@$SYNCUSER -l /var/log/syncthing.log sudo systemctl start syncthing@$SYNCUSER.service +#================================================= +# SETUP LOGROTATE +#================================================= +ynh_print_info "Configuring log rotation..." + # Configure logrotate if present if [ -d "/etc/logrotate.d" ]; then sed -i "s@SYNCUSER@$SYNCUSER@g" ../conf/logrotate.conf