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 @@ ...@@ -2,4 +2,4 @@
# Mahara implements its own cron to cater for people who need to run it in # Mahara implements its own cron to cater for people who need to run it in
# situations where normal unixy cron isn't available. # 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 ...@@ -2,3 +2,4 @@ etc/mahara
usr/share/mahara usr/share/mahara
var/lib/mahara var/lib/mahara
var/lib/mahara/smarty/compile var/lib/mahara/smarty/compile
var/log/mahara
/var/log/mahara-cron.log { /var/log/mahara/cron.log {
create 644 www-data www-data create 644 www-data www-data
rotate 12 rotate 12
weekly weekly
......
...@@ -59,8 +59,8 @@ case "$1" in ...@@ -59,8 +59,8 @@ case "$1" in
echo "?>" >> $CONFIG_DEBCONF_PHP echo "?>" >> $CONFIG_DEBCONF_PHP
# Touch cron log # Touch cron log
touch /var/log/mahara-cron.log touch /var/log/mahara/cron.log
chown www-data:www-data /var/log/mahara-cron.log chown www-data:www-data /var/log/mahara/cron.log
# Link to captcha font # Link to captcha font
ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/default/static/captcha.ttf ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/default/static/captcha.ttf
......
...@@ -22,7 +22,7 @@ set -e ...@@ -22,7 +22,7 @@ set -e
case "$1" in case "$1" in
purge) 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!" [ -d /var/lib/mahara ] && echo "NOTE: purge does _not_ remove /var/lib/mahara, you must do this yourself if you really want to!"
;; ;;
remove) remove)
......
Supports Markdown
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