Skip ACME client for other certificates than LE

master
andryyy 2017-06-17 10:08:12 +02:00
parent 08edc1d1d3
commit 5aba885b58
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,12 @@ restart_containers(){
done 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 while true; do
declare -a SQL_DOMAIN_ARR declare -a SQL_DOMAIN_ARR