fix: gross error

This commit is contained in:
f 2024-12-28 17:39:58 -03:00
parent cd7a71d8e1
commit c927f66f3f
No known key found for this signature in database

View file

@ -104,7 +104,7 @@ case $1 in
if test -s "${cert}"; then if test -s "${cert}"; then
domain="`certtool -i < "${cert}" | grep Subject: | cut -d = -f 2 | tr -d " "`" domain="`certtool -i < "${cert}" | grep Subject: | cut -d = -f 2 | tr -d " "`"
if grep -q "^${subject}$" "${domains}"; then if grep -q "^${domain}$" "${domains}"; then
echo "ok - ${domain} certificate correctly set" echo "ok - ${domain} certificate correctly set"
else else
not_ok "${domain} certificate is not needed anymore, removing" not_ok "${domain} certificate is not needed anymore, removing"