Skip ACME client for other certificates than LE

This commit is contained in:
andryyy 2017-06-17 10:08:12 +02:00
parent 08edc1d1d3
commit 5aba885b58

View File

@ -11,6 +11,12 @@ restart_containers(){
done
}
if [[ $(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer) != *"Let's Encrypt"* &&
$(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer) != *"mailcow"* ]]; then
echo "Skipping ACME client"
exit 0
fi
while true; do
declare -a SQL_DOMAIN_ARR