diff --git a/certbotd.sh b/certbotd.sh index ac6c0cd..8a98393 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -111,8 +111,8 @@ case $1 in if grep -q "^${domain}$" "${domains}"; then echo "ok - ${domain} certificate correctly set" else - not_ok "${domain} certificate is not needed anymore, removing" - remove_certificate "${domain}" + not_ok "${dir} certificate is not needed anymore, removing" + remove_certificate "${dir}" fi else not_ok "${dir} certificate doesn't exist, removing"