cdist/cdist/conf/type/__letsencrypt_cert/explorer/certificate-is-test

9 lines
136 B
Bash
Executable File

#!/bin/sh -e
if certbot certificates --cert-name "${__object_id:?}" | \
grep -q 'INVALID: TEST_CERT'; then
echo yes
else
echo no
fi