mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-11-02 11:07:52 +00:00
Fix the path of the nginx pid in startup scripts, fixes #483
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user