ref: 0165e83598f06c10aabf676e5798d84f9a464510
parent: 92edb4bfea126fecf69586dec6a95bc52812283c
author: Stephen Jones <[email protected]>
date: Sun Oct 17 21:54:58 EDT 2021
changed overwriting of logfile
--- a/logrotate
+++ b/logrotate
@@ -26,9 +26,8 @@
}
gzip -c $logdir/$1 > $logdir/$1.0.gz
- rm -f $logdir/$i
- touch $logdir/$i
- chmod 0662 $logdir/$i
+ chmod -a $logdir/$i
+ >$logdir/$i
chmod +a $logdir/$i
}