1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

SETUP LOGROTATE

This commit is contained in:
yalh76 2019-04-13 16:40:48 +02:00
parent eff0682f87
commit 9ddb806db3

View file

@ -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