summaryrefslogtreecommitdiff
path: root/backend/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/update.py')
-rwxr-xr-xbackend/update.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/backend/update.py b/backend/update.py
new file mode 100755
index 0000000..f605b39
--- /dev/null
+++ b/backend/update.py
@@ -0,0 +1,25 @@
+#!/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."