create_vhost.sh: prevent script from finding old configurations at folders vhosts-yyyy-mm-dd .

This commit is contained in:
Christoph 2018-04-09 15:22:55 +02:00
parent 4a37e454fa
commit 826309ac44

View File

@ -569,7 +569,7 @@ fi # if $_base_webserver_info_needed ; then
## - Looking for existent VHost Configuration
## -
#_vhost_config=`grep -l -r -E "(ServerName|ServerAlias)\s+.*$site_url" ${_apache_base_dir_realpath}/conf/vhosts* 2> /dev/null`
_vhost_config=`grep -l -r -E "(ServerName|ServerAlias)\s+$site_url" ${_apache_base_dir_realpath}/conf/vhosts* 2> /dev/null`
_vhost_config=`grep -l -r -E "(ServerName|ServerAlias)\s+$site_url" ${_apache_base_dir_realpath}/conf/vhosts/* 2> /dev/null`
_existing_vhost_config_file=""
if [ -n "$_vhost_config" ]; then