From 62047cbb75229c3d84e0d3522005e8ea353bac7a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Apr 2019 01:18:33 +0200 Subject: [PATCH] implement ynh_use_logrotate --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index e5bca24..8d4e9de 100644 --- a/scripts/install +++ b/scripts/install @@ -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