Commit 383eb9b2 authored by Leo Iannacone's avatar Leo Iannacone

Added cronjob

parent 96a29667
#!/bin/bash
PLANET=/srv/planet.ubuntu-it.org
PLANETWWW=$PLANET/www
PLANETSRC=$PLANET/planet
BZR=$PLANET/bzr
PLANETBZR=$BZR/planet-bzr
MEMBRIBZR=$BZR/membri
MEMBRIFACES=$MEMBRI/images
THEMELIBS=$PLANETSRC/themes/light/libs
# Update planet source
cd $PLANETBZR ; bzr pull ; cp -ax * $PLANETSRC
# Update config and members
cd $MEMBRIBZR ; bzr pull ; cp -ax config.ini $PLANETSRC
# Run planet udpate
cd $PLANETSRC ; ./planet.py -v 2 > /tmp/planet.log 2>&1
# Update the www
cp -ax $PLANETSRC/output/* $PLANETWWW/
cp -ax $THEMELIBS $PLANETWWW
cp -ax $MEMBRIFACES $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