Commit f3a0a4c6 authored by Craig Miskell's avatar Craig Miskell

Log to a logfile, so we don't get copious cron output

parent 535cd567
......@@ -4,9 +4,14 @@ set -e
PACKAGE=`basename $0 .postinst`
db_get maharadocs/installdir
cd $RET
git pull
make -C $RET update html epub latexpdf MAHARA=1.4
make -C $RET update html epub latexpdf MAHARA=1.5
make -C $RET update html epub latexpdf MAHARA=1.6
make -C $RET update html epub latexpdf MAHARA=1.7
INSTALLDIR=$RET
db_get maharadocs/logdir
LOGDIR=$RET
LOGFILE=${LOGDIR}/update.log
cd $INSTALLDIR
git pull >> $LOGFILE
make -C $INSTALLDIR update html epub latexpdf MAHARA=1.4 >> $LOGFILE 2>&1
make -C $INSTALLDIR update html epub latexpdf MAHARA=1.5 >> $LOGFILE 2>&1
make -C $INSTALLDIR update html epub latexpdf MAHARA=1.6 >> $LOGFILE 2>&1
make -C $INSTALLDIR update html epub latexpdf MAHARA=1.7 >> $LOGFILE 2>&1
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