|
@@ -251,6 +251,7 @@ for ((xd=0; xd != ${#domains[@]}; xd++)); do
|
251
|
251
|
site_port="${site_data[2]}";
|
252
|
252
|
## apache2 config
|
253
|
253
|
if [[ "$opt" != "" ]] && [[ $opt != "nginx" ]] && [[ "$opt" == "apache" ]]; then
|
|
254
|
+ ## добавить проверку режима apache2 и путь для активации конфигурации
|
254
|
255
|
echo >$conf_dir/$site_name.conf;
|
255
|
256
|
echo -e '<VirtualHost *:'"$site_port"'>' >>$conf_dir/$site_name.conf;
|
256
|
257
|
echo -e ' ServerName '"$site_name"'' >>$conf_dir/$site_name.conf;
|