web_include fix

This commit is contained in:
Serghey Rodin 2015-05-29 01:54:48 +03:00
commit d4de297092

View file

@ -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