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:
parent
e6a6063ed2
commit
62047cbb75
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue