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 1689ea3 commit d2e01faCopy full SHA for d2e01fa
bin/v-add-web-domain-ssl
@@ -90,11 +90,15 @@ if [ -x $WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.sh ]; then
90
$user $domain $ip $HOMEDIR $sdocroot
91
fi
92
93
-# Checking web config
+# Checking web config include
94
web_conf="/etc/$WEB_SYSTEM/conf.d/vesta.conf"
95
-if [ -z "$(grep "$conf" $web_conf)" ]; then
+web_include=$(grep "$conf" $web_conf )
96
+if [ -z "$web_include" ] && [ "$WEB_SYSTEM" != 'nginx' ]; 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