From 6945074c2c496a89665f559d431cf22602199937 Mon Sep 17 00:00:00 2001 From: Karl Semich <0xloem@gmail.com> Date: Sat, 27 Aug 2016 04:31:52 -0400 Subject: Added ikistrap template --- backend/resilient/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'backend/resilient/__init__.py') 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: -- cgit v1.2.3