linux - fix cron jobs

This commit is contained in:
bunkerity
2021-08-18 16:15:26 +02:00
parent 0938b20eb8
commit fd52bb7c8d
3 changed files with 14 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ class JobManagement() :
return ReloadRet.OK
return ReloadRet.KO
elif self.__local_nginx :
proc = subprocess.run(["/usr/sbin/nginx", "-s", "reload"], capture_output=True)
proc = subprocess.run(["sudo", "/opt/bunkerized-nginx/ui/linux.sh", "reload"], capture_output=True)
if proc.returncode != 0 :
log("reload", "ERROR", "can't reload nginx (status code = " + str(proc.returncode) + ")")
if len(proc.stdout.decode("ascii")) > 1 :