mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
fixed no_web_domains case
This commit is contained in:
parent
2cf57ee94f
commit
19beced228
1 changed files with 4 additions and 2 deletions
|
@ -105,12 +105,14 @@ done
|
||||||
# Renaming tmp config
|
# Renaming tmp config
|
||||||
tmp_conf="$V_HOME/$user/conf/tmp_httpd.conf"
|
tmp_conf="$V_HOME/$user/conf/tmp_httpd.conf"
|
||||||
conf="$V_HOME/$user/conf/httpd.conf"
|
conf="$V_HOME/$user/conf/httpd.conf"
|
||||||
mv $tmp_conf $conf
|
if [ -e "$tmp_conf" ]; then
|
||||||
|
mv $tmp_conf $conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking include in main httpd.conf
|
# Checking include in main httpd.conf
|
||||||
main_conf='/etc/httpd/conf.d/vesta.conf'
|
main_conf='/etc/httpd/conf.d/vesta.conf'
|
||||||
main_conf_check=$(grep "$conf" $main_conf )
|
main_conf_check=$(grep "$conf" $main_conf )
|
||||||
if [ -z "$main_conf_check" ]; then
|
if [ ! -z "$domains" ] && [ -z "$main_conf_check" ]; then
|
||||||
echo "Include $conf" >>$main_conf
|
echo "Include $conf" >>$main_conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue