diff options
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: |