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 2cf57ee commit 19becedCopy full SHA for 19beced
bin/v_rebuild_web_domains
@@ -105,12 +105,14 @@ done
105
# Renaming tmp config
106
tmp_conf="$V_HOME/$user/conf/tmp_httpd.conf"
107
conf="$V_HOME/$user/conf/httpd.conf"
108
-mv $tmp_conf $conf
+if [ -e "$tmp_conf" ]; then
109
+ mv $tmp_conf $conf
110
+fi
111
112
# Checking include in main httpd.conf
113
main_conf='/etc/httpd/conf.d/vesta.conf'
114
main_conf_check=$(grep "$conf" $main_conf )
-if [ -z "$main_conf_check" ]; then
115
+if [ ! -z "$domains" ] && [ -z "$main_conf_check" ]; then
116
echo "Include $conf" >>$main_conf
117
fi
118
0 commit comments