linux - fix unknown scheme error and do nginx reload as root in UI

This commit is contained in:
bunkerity
2021-08-18 13:38:09 +02:00
parent 8a4eb3f2a3
commit fde14d1621
6 changed files with 16 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ class Instances :
if proc.returncode != 0 :
result = False
else :
proc = subprocess.run(["/usr/sbin/nginx", "-s", "reload"], capture_output=True)
proc = subprocess.run(["/opt/bunkerized-nginx/ui/nginx-reload.sh"], capture_output=True)
result = proc.returncode == 0
elif instance["type"] == "container" or instance["type"] == "service" :
result = self.__api_request(instance, "/reload")