fix: remove the dir

This commit is contained in:
f 2024-12-28 17:53:42 -03:00
parent d92d09d04f
commit 6abce5891b
No known key found for this signature in database

View file

@ -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"