fail if NODES is empty

This commit is contained in:
f 2022-03-19 10:02:18 -03:00
parent c546ddf827
commit 5d5d0abed9

View file

@ -1,5 +1,10 @@
#!/bin/sh
if test -z "${NODES}"; then
echo "The env var NODES is empty, if you don't want to synchronize to other servers, set SINGLE_NODE=true" >&2
exit 1
fi
lock=/tmp/certbot.lck
ensure() {
@ -12,6 +17,8 @@ ensure() {
find /etc/letsencrypt -type f | xargs -r chmod 640
chgrp -R ssl /etc/letsencrypt
${SINGLE_NODE:-false} && exit 0
# Push certificates to nodes, we use SSH as a secure transport
# but this means we're synchronizing from container to host which is
# awkward. A restricted rsync treats / as the remote location for the