[SSL] fix wildcard compare for non-bash shell

master
Marcel Hofer 2019-10-20 17:02:54 +02:00
parent dcd50b2245
commit 05e7c95829
1 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,10 @@ for cert_dir in /etc/ssl/mail/*/ ; do
fi fi
# do not create vhost for default-certificate. the cert is already in the default server listen # do not create vhost for default-certificate. the cert is already in the default server listen
domains="$(cat ${cert_dir}domains | sed -e 's/^[[:space:]]*//')" domains="$(cat ${cert_dir}domains | sed -e 's/^[[:space:]]*//')"
if [[ "${domains}" == "" ]] || [[ "${domains}" == "${MAILCOW_HOSTNAME}"* ]]; then case "${domains}" in
continue "") continue;;
fi "${MAILCOW_HOSTNAME}"*) continue;;
esac
echo -n ' echo -n '
server { server {
include /etc/nginx/conf.d/listen_plain.active; include /etc/nginx/conf.d/listen_plain.active;