mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
added check for web server type in SSL config, closes #626
This commit is contained in:
parent
1689ea34a2
commit
d2e01fab76
1 changed files with 6 additions and 2 deletions
|
@ -90,11 +90,15 @@ if [ -x $WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.sh ]; then
|
|||
$user $domain $ip $HOMEDIR $sdocroot
|
||||
fi
|
||||
|
||||
# Checking web config
|
||||
# Checking web config include
|
||||
web_conf="/etc/$WEB_SYSTEM/conf.d/vesta.conf"
|
||||
if [ -z "$(grep "$conf" $web_conf)" ]; then
|
||||
web_include=$(grep "$conf" $web_conf )
|
||||
if [ -z "$web_include" ] && [ "$WEB_SYSTEM" != 'nginx' ]; then
|
||||
echo "Include $conf" >> $web_conf
|
||||
fi
|
||||
if [ -z "$web_include" ] && [ "$WEB_SYSTEM" = 'nginx' ]; then
|
||||
echo "include $conf;" >> $web_conf
|
||||
fi
|
||||
|
||||
# Checking proxy
|
||||
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue