diff options
author | Karl Semich <0xloem@gmail.com> | 2016-08-27 04:31:52 -0400 |
---|---|---|
committer | Karl Semich <0xloem@gmail.com> | 2016-08-27 04:31:52 -0400 |
commit | 6945074c2c496a89665f559d431cf22602199937 (patch) | |
tree | dd76fa29e557aaaaf11a40d5595a22a996533f41 /backend/resilient | |
parent | 227d6118cf72cf9333ac2488b76633f346e59425 (diff) | |
download | standingwithresilience-6945074c2c496a89665f559d431cf22602199937.tar.gz standingwithresilience-6945074c2c496a89665f559d431cf22602199937.zip |
Added ikistrap template
Diffstat (limited to 'backend/resilient')
-rw-r--r-- | backend/resilient/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py index 07f3793..818a6f5 100644 --- a/backend/resilient/__init__.py +++ b/backend/resilient/__init__.py @@ -8,14 +8,12 @@ import urllib __all__ = ["freenet"] -## Set to change default title -name = 'A Wiki for Targeted Individuals' - backend_path = os.path.normpath(os.path.join(os.path.dirname(__file__), '..')) auth_path = os.path.join(backend_path, 'auth') html_path = os.path.normpath(os.path.join(backend_path, '../html')) wiki_src_path = os.path.normpath(os.path.join(backend_path, '../wiki')) +ikiwiki_setup_path = os.path.join(backend_path, 'ikiwiki.setup') git_path = os.path.normpath(os.path.join(backend_path, '../.git')) ssh_config_path = os.path.join(auth_path, "ssh-config") @@ -78,7 +76,7 @@ class ikiwiki: shutil.rmtree(html_path) os.mkdir(html_path) - status = os.system("ikiwiki --wikiname '%s' --rebuild '%s' '%s'" % (name.replace("'","'\"'\"'"), wiki_src_path, html_path)) + status = os.system("ikiwiki --setup '%s' '%s' '%s'" % (ikiwiki_setup_path, wiki_src_path, html_path)) ikiwiki.synced = (status == 0) if ikiwiki.synced: |