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

implement ynh_use_logrotate

This commit is contained in:
yalh76 2019-04-14 01:18:33 +02:00
parent e6a6063ed2
commit 62047cbb75

View file

@ -152,12 +152,8 @@ sudo yunohost app addaccess syncthing -u $admin
#=================================================
ynh_print_info "Configuring log rotation..."
# Configure logrotate if present
if [ -d "/etc/logrotate.d" ]; then
sed -i "s@sync_user@$sync_user@g" ../conf/logrotate.conf
sudo cp ../conf/logrotate.conf /etc/logrotate.d/syncthing
sudo chmod 0644 /etc/logrotate.d/syncthing
fi
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
#=================================================
# SETUP SSOWAT