Update 'scripts/grav/main.py'

pull/4/head
drunkendog 2022-09-22 19:54:04 +01:00
parent bb9eac8544
commit ff34357aaf
1 changed files with 1 additions and 1 deletions

View File

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