6 JMHOME=/home/groups/l/li/linuxjm
11 test -d $LOGDIR || mkdir -p $LOGDIR
12 LOGFILE=$LOGDIR/log-$(/bin/date +%Y%m%d-%H%M%S).txt
15 echo "===== git pull =====" >> $LOGFILE 2>&1
17 git pull >> $LOGFILE 2>&1
18 git submodule update --init --recursive >> $LOGFILE 2>&1
20 echo "===== Update web contents =====" >> $LOGFILE 2>&1
24 find $LOGDIR -mtime +30 -exec rm -f {} \; -print >> $LOGFILE 2>&1