create_vhost.sh: prevent script from finding old configurations at folders vhosts-yyyy-mm-dd .
This commit is contained in:
parent
4a37e454fa
commit
826309ac44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user