#!/usr/bin/env python2 import os status = 0 status += os.system("git pull git://standingwithresilience.branchable.com/") #status += os.system("git pull fairlystable-guest:/srv/git/standingwithresilience") if status != 0: exit(status) status += os.system("git push git://standingwithresilience.branchable.com/") status += os.system("git gc --prune=0") if status != 0: exit(status) status += os.system("ikiwiki --rebuild ../wiki ../html") if status != 0: exit(status) status += os.system("freesitemgr -c freesitemgr -v -l freesitemgr.log -r 0 update") print "Done."