php-mpos/cronjobs/logrotate.sh
Sebastian Grewe 9ff455d0dd Adding sample logrotation config and cron
This will allow pool operators to rotate the logfiles automatically via cron.
2013-07-24 11:13:28 +02:00

12 lines
173 B
Bash
Executable File

#!/bin/bash
# Find scripts path
if [[ -L $0 ]]; then
CRONHOME=$( dirname $( readlink $0 ) )
else
CRONHOME=$( dirname $0 )
fi
cd $CRONHOME
logrotate etc/logrotate.conf