Commit 1370a94d authored by Francois Marier's avatar Francois Marier
Browse files

Small fixes to the cron log directory

- Only create the directory in the postinst script
- Delete the directory in the postrm script
parent 90bc4628
......@@ -2,4 +2,3 @@ etc/mahara
usr/share/mahara
var/lib/mahara
var/lib/mahara/smarty/compile
var/log/mahara
......@@ -59,6 +59,7 @@ case "$1" in
echo "?>" >> $CONFIG_DEBCONF_PHP
# Touch cron log
mkdir -p /var/log/mahara
touch /var/log/mahara/cron.log
chown www-data:www-data /var/log/mahara/cron.log
......
......@@ -22,7 +22,7 @@ set -e
case "$1" in
purge)
rm -f /var/log/mahara/cron.log*
rm -rf /var/log/mahara/
[ -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