diff options
author | Karl Semich <0xloem@gmail.com> | 2016-05-29 07:27:21 -0400 |
---|---|---|
committer | Karl Semich <0xloem@gmail.com> | 2016-05-29 07:27:21 -0400 |
commit | d01e973b0d85d14d567f628b35868cc88925750e (patch) | |
tree | 5f23014901f8d8d90bb041c2694c3675c12df5de | |
parent | a0f6e71005bd6d425cc73f33ca4e779616e3a91b (diff) | |
download | standingwithresilience-d01e973b0d85d14d567f628b35868cc88925750e.tar.gz standingwithresilience-d01e973b0d85d14d567f628b35868cc88925750e.zip |
small update script fixes
-rw-r--r-- | backend/.gitignore | 2 | ||||
-rwxr-xr-x | backend/update.py | 9 |
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) |