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

This commit is contained in:
Pierre Jaury
2018-06-02 10:23:33 +02:00
parent 1b0b3a2b1e
commit 6828231c28
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")
if os.environ["TLS_FLAVOR"] in [ "letsencrypt","mail-letsencrypt" ]:
subprocess.Popen(["/letsencrypt.py"])