Browse Source

Benjamin Schieder:


			
			
				rocklinux
			
			
		
Benjamin Schieder 19 years ago
parent
commit
3d69beb9c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      package/base/sysklogd/logrotate.cron

+ 1
- 1
package/base/sysklogd/logrotate.cron

@ -27,7 +27,7 @@ for filename in `find /var/log -type f ! -name '*.gz'` ; do
kilobytes=`du -k $filename | cut -f1`
if [ $kilobytes -gt 4096 ] ; then
echo -e "$kilobytes\t$filename\t(rotate, sending sighup)"
for num in `seq 3 1` ; do
for num in `seq 3 -1 1` ; do
[ -f "$filename-$num.gz" ] && mv "$filename-$num.gz" "$filename-$(( $num + 1 )).gz"
done
read mode uid gid < <( stat -c "%a %u %g" "$filename" )

Loading…
Cancel
Save