a remaining lock is an error
This commit is contained in:
parent
80f610fb76
commit
c546ddf827
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue