create_vhost.sh: prevent script from finding old configurations at folders vhosts-yyyy-mm-dd .
This commit is contained in:
		| @@ -569,7 +569,7 @@ fi # if $_base_webserver_info_needed ; then | |||||||
| ## - Looking for existent VHost Configuration | ## - 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` | _vhost_config=`grep -l -r -E "(ServerName|ServerAlias)\s+$site_url" ${_apache_base_dir_realpath}/conf/vhosts/* 2> /dev/null` | ||||||
|  |  | ||||||
| _existing_vhost_config_file="" | _existing_vhost_config_file="" | ||||||
| if [ -n "$_vhost_config" ]; then | if [ -n "$_vhost_config" ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user