acme-deploy-helpers/nginx_systemd_reload.sh

6 lines
145 B
Bash
Executable File

#!/bin/bash
nginx -t || exit 1
if systemctl --quiet is-active nginx.service; then
systemctl try-reload-or-restart nginx.service || exit 1
fi