Commit ae1a3897 authored by Leo Iannacone's avatar Leo Iannacone

Improved cronjob

parent 876a4f8b
...@@ -5,8 +5,9 @@ PLANETSRC=$PLANET/planet ...@@ -5,8 +5,9 @@ PLANETSRC=$PLANET/planet
BZR=$PLANET/bzr BZR=$PLANET/bzr
PLANETBZR=$BZR/planet-bzr PLANETBZR=$BZR/planet-bzr
MEMBRIBZR=$BZR/membri MEMBRIBZR=$BZR/membri
MEMBRIFACES=$MEMBRI/images MEMBRIFACES=$MEMBRIBZR/images
THEMELIBS=$PLANETSRC/themes/light/libs THEMELIBS=$PLANETSRC/themes/light/libs
LOGFILE=/tmp/planet.log
# Update planet source # Update planet source
cd $PLANETBZR ; bzr pull ; cp -ax * $PLANETSRC cd $PLANETBZR ; bzr pull ; cp -ax * $PLANETSRC
...@@ -14,9 +15,13 @@ cd $PLANETBZR ; bzr pull ; cp -ax * $PLANETSRC ...@@ -14,9 +15,13 @@ cd $PLANETBZR ; bzr pull ; cp -ax * $PLANETSRC
cd $MEMBRIBZR ; bzr pull ; cp -ax config.ini $PLANETSRC cd $MEMBRIBZR ; bzr pull ; cp -ax config.ini $PLANETSRC
# Run planet udpate # Run planet udpate
cd $PLANETSRC ; ./planet.py -v 2 > /tmp/planet.log 2>&1 echo "
#########################################################
New planet log: `date`
" >> $LOGFILE
cd $PLANETSRC ; ./planet.py >> $LOGFILE 2>&1
# Update the www # Update the www
cp -ax $PLANETSRC/output/* $PLANETWWW/
cp -ax $THEMELIBS $PLANETWWW cp -ax $THEMELIBS $PLANETWWW
cp -ax $MEMBRIFACES $PLANETWWW cp -ax $MEMBRIFACES $PLANETWWW
cp -ax $PLANETSRC/output/* $PLANETWWW/
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