mirror of
https://github.com/unraid/webgui.git
synced 2026-03-10 04:49:14 -05:00
Syslog: added log rotation settings
This commit is contained in:
@@ -6,8 +6,8 @@ LOG=/etc/logrotate.d/rsyslog.local
|
||||
if grep -qP '^#\*\.\* \?remote$' $ETC; then
|
||||
sed -ri 's/^#(\*\.\* \?remote)$/\1/' $ETC
|
||||
/etc/rc.d/rc.rsyslogd restart &> /dev/null
|
||||
fi
|
||||
if [[ -f $USB ]]; then
|
||||
cp -f $USB $LOG
|
||||
chmod 644 $LOG
|
||||
if [[ -f $USB ]]; then
|
||||
cp -f $USB $LOG
|
||||
chmod 644 $LOG
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user