Skip to content

Commit 3f314d1

Browse files
committed
Revert "added check for web server type in SSL config, closes hestiacp#626"
This reverts commit d2e01fa.
1 parent 663c4dd commit 3f314d1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bin/v-add-web-domain-ssl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,11 @@ if [ -x $WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.sh ]; then
9090
$user $domain $ip $HOMEDIR $sdocroot
9191
fi
9292

93-
# Checking web config include
93+
# Checking web config
9494
web_conf="/etc/$WEB_SYSTEM/conf.d/vesta.conf"
95-
web_include=$(grep "$conf" $web_conf )
96-
if [ -z "$web_include" ] && [ "$WEB_SYSTEM" != 'nginx' ]; then
95+
if [ -z "$(grep "$conf" $web_conf)" ]; then
9796
echo "Include $conf" >> $web_conf
9897
fi
99-
if [ -z "$web_include" ] && [ "$WEB_SYSTEM" = 'nginx' ]; then
100-
echo "include $conf;" >> $web_conf
101-
fi
10298

10399
# Checking proxy
104100
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then

0 commit comments

Comments
 (0)