You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
394 B
Python
16 lines
394 B
Python
3 years ago
|
#!/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
|
||
3 years ago
|
conf.jinja("/config/nginx-snappymail.conf", args, "/etc/nginx/http.d/snappymail.conf")
|
||
3 years ago
|
if os.path.exists("/var/run/nginx.pid"):
|
||
|
os.system("nginx -s reload")
|