We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663c4dd commit 3f314d1Copy full SHA for 3f314d1
bin/v-add-web-domain-ssl
@@ -90,15 +90,11 @@ if [ -x $WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.sh ]; then
90
$user $domain $ip $HOMEDIR $sdocroot
91
fi
92
93
-# Checking web config include
+# Checking web config
94
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
+if [ -z "$(grep "$conf" $web_conf)" ]; then
97
echo "Include $conf" >> $web_conf
98
99
-if [ -z "$web_include" ] && [ "$WEB_SYSTEM" = 'nginx' ]; then
100
- echo "include $conf;" >> $web_conf
101
-fi
102
103
# Checking proxy
104
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
0 commit comments