1
0
mirror of synced 2025-12-13 11:22:16 +01:00

Delete startssa.py

This commit is contained in:
d-two
2021-01-06 15:45:40 +01:00
committed by GitHub
parent ebdcab4b51
commit 6face880f3

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env python3
# This creates an HTTP message
# with the content of BODY as the enclosed representation
# for the resource http://localhost:8080/file
import http.client
import subprocess
import sys
from urllib.parse import urlparse
subprocess.run(["/nginx.sh"])
o = urlparse(sys.argv[1])
subprocess.run(["sed", "-i", "s|%%SSA_PORT%%|" + str(o.port) + "|g", "/etc/nginx/servers/ingress.conf"])