8 lines
291 B
Bash
8 lines
291 B
Bash
#!/bin/sh
|
|
set -eu
|
|
# Copy under renewal-hooks/deploy only after auditing all existing hooks.
|
|
[ -s /etc/dpl-node/certificate-domain ] || exit 0
|
|
domain=$(cat /etc/dpl-node/certificate-domain)
|
|
[ "${RENEWED_LINEAGE:-}" = "/etc/letsencrypt/live/$domain" ] || exit 0
|
|
systemctl try-restart dpl-node
|