From 5ef7b00243eb991f2dd9ced1b3d510d86b9be645 Mon Sep 17 00:00:00 2001 From: alexanderbeletsky Date: Thu, 8 Aug 2013 10:17:39 +0300 Subject: [PATCH] review comment by @rhy-jot --- plugins/nginx-vhosts/post-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index 9defef21b..8a9d39eac 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -15,7 +15,7 @@ if [[ -f "$HOME/VHOST" ]]; then if [[ -f "$SSL/server.crt" ]] && [[ -f "$SSL/server.key" ]]; then SSL_INUSE="$SSL" - elif [[ -f "$WILDCARD_SSL/server.crt" ]] && [[ -f "$WILDCARD_SSL/server.key" ]]; then + elif [[ -f "$WILDCARD_SSL/server.crt" ]] && [[ -f "$WILDCARD_SSL/server.key" ]] && [[ $hostname = `openssl x509 -in $WILDCARD_SSL/server.crt -noout -subject | tr '/' '\n' | grep CN= | cut -c4-` ]]; then SSL_INUSE="$WILDCARD_SSL" fi