refactor: update system config, sudoers, and install script
This commit is contained in:
@@ -13,6 +13,7 @@ try:
|
||||
import requests_unixsocket
|
||||
|
||||
from daemon.client import post
|
||||
from daemon.iface import POST_NGINX_RELOAD
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
project_dir = os.environ.get("INSTALL_DIR", os.path.dirname(os.path.dirname(__file__)))
|
||||
@@ -20,7 +21,7 @@ try:
|
||||
"VACUUM_WALLD_SOCKET",
|
||||
os.path.join(project_dir, "data", "daemon.sock"),
|
||||
)
|
||||
post("/nginx/reload", socket_path=socket_path)
|
||||
post(POST_NGINX_RELOAD, socket_path=socket_path)
|
||||
sys.exit(0)
|
||||
except Exception as exc:
|
||||
logging.error("acme-deploy hook failed: %s", exc)
|
||||
|
||||
Reference in New Issue
Block a user