Update 'scripts/wallabag/main.py'

pull/4/head
drunkendog 2022-09-22 19:32:12 +01:00
parent 6556323b84
commit 10b857c205
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import os, sys
with open("../nginx-site-template.conf", "r") as f:
template = f.read().replace("# server_name serverNameVar;", f"server_name {sys.argv[1]};")
template = f.read().replace("#serverNameVar", f"server_name {sys.argv[1]};")
with open("/etc/nginx/sites-available/wallabag.conf", "w") as f:
f.write(template)