mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
16 lines
390 B
Python
16 lines
390 B
Python
|
#!/usr/bin/python3
|
||
|
|
||
|
import os
|
||
|
import logging as log
|
||
|
import sys
|
||
|
from socrate import system, conf
|
||
|
|
||
|
args = os.environ.copy()
|
||
|
|
||
|
log.basicConfig(stream=sys.stderr, level=args.get("LOG_LEVEL", "WARNING"))
|
||
|
|
||
|
# Build final configuration paths
|
||
|
conf.jinja("/config/nginx-rainloop.conf", args, "/etc/nginx/http.d/rainloop.conf")
|
||
|
if os.path.exists("/var/run/nginx.pid"):
|
||
|
os.system("nginx -s reload")
|