cdist/cdist/conf/type/__letsencrypt_cert/explorer/certificate-exists

8 lines
121 B
Bash
Executable File

#!/bin/sh -e
if certbot certificates | grep -q " Certificate Name: ${__object_id:?}$"; then
echo yes
else
echo no
fi