Update 'scripts/setup-template.py'

pull/4/head
drunkendog 2022-09-23 21:58:47 +01:00
parent c01ef86977
commit b07b03a83d
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import os, sys
#FILE_READ #FILE_READ
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"#ip_address") template = f.read().replace("#serverNameVar", f"{sys.argv[1]}").replace("#http://127.0.0.1:8080/", f"#ip_address")
#ADDITIONAL_REPLACE
#FILE_WRITE #FILE_WRITE
with open("/etc/nginx/sites-available/#service.conf", "w") as f: with open("/etc/nginx/sites-available/#service.conf", "w") as f: