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:
parent
eff0682f87
commit
9ddb806db3
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,11 @@ sudo systemctl enable syncthing@$SYNCUSER.service
|
||||||
sudo yunohost service add syncthing@$SYNCUSER -l /var/log/syncthing.log
|
sudo yunohost service add syncthing@$SYNCUSER -l /var/log/syncthing.log
|
||||||
sudo systemctl start syncthing@$SYNCUSER.service
|
sudo systemctl start syncthing@$SYNCUSER.service
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info "Configuring log rotation..."
|
||||||
|
|
||||||
# Configure logrotate if present
|
# Configure logrotate if present
|
||||||
if [ -d "/etc/logrotate.d" ]; then
|
if [ -d "/etc/logrotate.d" ]; then
|
||||||
sed -i "s@SYNCUSER@$SYNCUSER@g" ../conf/logrotate.conf
|
sed -i "s@SYNCUSER@$SYNCUSER@g" ../conf/logrotate.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue