Explorar o código

web_include fix

Serghey Rodin %!s(int64=11) %!d(string=hai) anos
pai
achega
d4de297092
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      bin/v-add-web-domain

+ 2 - 1
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