a remaining lock is an error

This commit is contained in:
f 2022-03-19 10:00:10 -03:00
parent 80f610fb76
commit c546ddf827

View file

@ -50,7 +50,12 @@ case $1 in
# Generate certificates
*)
# Only one instance can run at a time
test -f "${lock}" && exit 0
if test -f "${lock}" ; then
echo "There's a certbotd instance already running, doing nothing..." >&2
echo "If the problem persists, you may need to remove ${lock} manually." >&2
exit 1
fi
touch "${lock}"
# Save headers here