15 lines
342 B
Bash
Executable File
15 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
case "${RENEWED_LINEAGE:-}" in
|
|
/etc/letsencrypt/live/coulobre-*)
|
|
lock=/var/lib/coulobre/web-node/apply.lock
|
|
if [ -f "$lock" ]; then
|
|
exec 9<"$lock"
|
|
flock -x 9
|
|
/usr/sbin/apache2ctl configtest 2>&1
|
|
/usr/sbin/service apache2 reload
|
|
fi
|
|
;;
|
|
esac
|