Sindbad~EG File Manager

Current Path : /proc/12558/cwd/proc/11395/cwd/etc/cron.daily/
Upload File :
Current File : //proc/12558/cwd/proc/11395/cwd/etc/cron.daily/logrotate

#!/bin/sh

# Clean non existent log file entries from status file
cd /var/lib/logrotate
test -e status || touch status
head -1 status > status.clean
sed 's/"//g' status | while read logfile date
do
    [ -e "$logfile" ] && echo "\"$logfile\" $date"
done >> status.clean
mv status.clean status

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists