From fcd9949cf0df862aa5e8096daa5a5a163ad0b2f9 Mon Sep 17 00:00:00 2001 From: drunkendog Date: Thu, 22 Sep 2022 19:35:20 +0100 Subject: [PATCH] Update 'scripts/wallabag/main.py' --- scripts/wallabag/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/wallabag/main.py b/scripts/wallabag/main.py index 488586c..51dd8b1 100644 --- a/scripts/wallabag/main.py +++ b/scripts/wallabag/main.py @@ -1,10 +1,11 @@ import os, sys with open("../nginx-site-template.conf", "r") as f: - template = f.read().replace("#serverNameVar", f"server_name {sys.argv[1]};") + template = f.read().replace("#serverNameVar", f"{sys.argv[1]};").replace("#http://127.0.0.1:8080/", f"http://172.30.1.1:80/") with open("/etc/nginx/sites-available/wallabag.conf", "w") as f: f.write(template) # depreceated, TODO: replace with os.subprocess -os.system("../nginx-ensite.sh wallabag.conf") \ No newline at end of file +os.system("sh ../nginx-ensite.sh wallabag.conf") +os.system("sh launch-docker.sh") \ No newline at end of file