diff options
author | Karl Semich <0xloem@gmail.com> | 2016-10-01 13:31:22 -0400 |
---|---|---|
committer | Karl Semich <0xloem@gmail.com> | 2016-10-01 13:31:22 -0400 |
commit | 8d3af6f0909bae202520af9c77ae3b461289c555 (patch) | |
tree | fa7b13fd85f803e6e108c40ccd17a99e528f9aad | |
parent | 2ef9acda3efc99831a31feef459dbb8f8ff65099 (diff) | |
download | standingwithresilience-8d3af6f0909bae202520af9c77ae3b461289c555.tar.gz standingwithresilience-8d3af6f0909bae202520af9c77ae3b461289c555.zip |
Fix ikistrap "overwriting" files
-rw-r--r-- | backend/resilient/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py index 1a145ba..fc8c949 100644 --- a/backend/resilient/__init__.py +++ b/backend/resilient/__init__.py @@ -103,11 +103,9 @@ class ikiwiki: return True shutil.rmtree(html_path) - os.mkdir(html_path) + os.system("git checkout -- '%s'" % html_path) status = os.system("ikiwiki --setup '%s' '%s' '%s'" % (ikiwiki_setup_path, wiki_src_path, html_path)) - # workaround for ikistrap overwriting custom css files, which are included for freenet's filter - os.system("git checkout -- '%s'/css" % html_path) ikiwiki.synced = (status == 0) if ikiwiki.synced: |