summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/.gitignore2
-rwxr-xr-xbackend/update.py9
2 files changed, 7 insertions, 4 deletions
diff --git a/backend/.gitignore b/backend/.gitignore
index 745859d..9a4efdc 100644
--- a/backend/.gitignore
+++ b/backend/.gitignore
@@ -1 +1 @@
-freesitemgr.log
+update_private.py
diff --git a/backend/update.py b/backend/update.py
index 0c10e66..41abc0c 100755
--- a/backend/update.py
+++ b/backend/update.py
@@ -53,23 +53,24 @@ if found_gitocalypse:
print (":: Pushing to freenet repos ...")
# public freenet
os.system("git push freenet://USK@AKL0griFs7T25yw6-JR3Wk7vocvNBelOLg3RwtIL6aTp,jjuBPGO~oCByVoZ5f4Bny0Gp-l3kuDOtf3m-QBT4ekA,AQECAAE/Standing%20With%20Resilience%20Public.git.R1/0")
- #private freenet
- #####
# Build wiki
if status != 0:
+ print (":: Exiting due to failure")
exit(status)
if not found_ikiwiki:
+ print (":: Not building wiki; missing ikiwiki")
exit(0)
print (":: Building wiki ...")
-status += os.system("ikiwiki --rebuild ../wiki ../html")
+status += os.system("ikiwiki --wikiname 'A Wiki for Targeted Individuals' --rebuild ../wiki ../html")
if status != 0:
+ print (":: Exiting due to failure")
exit(status)
if found_freesitemgr:
@@ -77,3 +78,5 @@ if found_freesitemgr:
status += os.system("freesitemgr -c freesitemgr -v -l freesitemgr.log -r 0 update")
print "Done."
+
+exit(status)