Commit 175f667c authored by Nigel McNie's avatar Nigel McNie
Browse files

Move mahara cron log files to /var/log/mahara/ so they can be kept separate...

Move mahara cron log files to /var/log/mahara/ so they can be kept separate from other content in /var/log
parent abbe2f92
......@@ -2,4 +2,4 @@
# Mahara implements its own cron to cater for people who need to run it in
# situations where normal unixy cron isn't available.
#
* * * * * www-data if [ -r /usr/share/mahara/lib/cron.php ] ; then /usr/bin/php5 /usr/share/mahara/lib/cron.php >>/var/log/mahara-cron.log 2>&1 ; fi
* * * * * www-data if [ -r /usr/share/mahara/lib/cron.php ] ; then /usr/bin/php5 /usr/share/mahara/lib/cron.php >>/var/log/mahara/cron.log 2>&1 ; fi
......@@ -2,3 +2,4 @@ etc/mahara
usr/share/mahara
var/lib/mahara
var/lib/mahara/smarty/compile
var/log/mahara
/var/log/mahara-cron.log {
/var/log/mahara/cron.log {
create 644 www-data www-data
rotate 12
weekly
......
......@@ -59,8 +59,8 @@ case "$1" in
echo "?>" >> $CONFIG_DEBCONF_PHP
# Touch cron log
touch /var/log/mahara-cron.log
chown www-data:www-data /var/log/mahara-cron.log
touch /var/log/mahara/cron.log
chown www-data:www-data /var/log/mahara/cron.log
# Link to captcha font
ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/default/static/captcha.ttf
......
......@@ -22,7 +22,7 @@ set -e
case "$1" in
purge)
rm -f /var/log/mahara-cron.log*
rm -f /var/log/mahara/cron.log*
[ -d /var/lib/mahara ] && echo "NOTE: purge does _not_ remove /var/lib/mahara, you must do this yourself if you really want to!"
;;
remove)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment