Fix the path of the nginx pid in startup scripts, fixes #483

(cherry picked from commit 6828231c28)
This commit is contained in:
Pierre Jaury
2018-06-02 10:23:33 +02:00
parent e17c587b78
commit 6a3236200d
2 changed files with 3 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ import os
import subprocess
# Check if a stale pid file exists
if os.path.exists("/var/log/nginx.pid"):
os.remove("/var/log/nginx.pid")
if os.path.exists("/var/run/nginx.pid"):
os.remove("/var/run/nginx.pid")
# Actual startup script
if not os.path.exists("/certs/dhparam.pem") and os.environ["TLS_FLAVOR"] != "notls":