From d4de297092e5059d8957fc964bcc408a1c783449 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 29 May 2015 01:54:48 +0300 Subject: [PATCH] web_include fix --- bin/v-add-web-domain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/v-add-web-domain b/bin/v-add-web-domain index 49415c689..8ad6f9e29 100755 --- a/bin/v-add-web-domain +++ b/bin/v-add-web-domain @@ -158,7 +158,8 @@ if [ -x $WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.sh ]; then fi # Checking web config include -web_include="/etc/$WEB_SYSTEM/conf.d/vesta.conf" +web_conf="/etc/$WEB_SYSTEM/conf.d/vesta.conf" +web_include=$(grep "$conf" $web_conf ) if [ -z "$web_include" ] && [ "$WEB_SYSTEM" != 'nginx' ]; then echo "Include $conf" >> $web_conf fi