diff --git a/create_vhost_php.sh b/create_vhost_php.sh index f57af93..d4f5ce6 100755 --- a/create_vhost_php.sh +++ b/create_vhost_php.sh @@ -165,7 +165,7 @@ _major_php_verisons=`echo "$__major_php_verisons" | sed 's/^ *//'` # - Determin IP Addresses # - -if ifconfig | grep -i -q -E "inet [address|Adresse]:" ; then +if ifconfig | grep -i -q -E "inet (address|Adresse):" ; then __ipv4="`ifconfig | grep -e \"^\s*inet Adresse\" | grep -v \"127.0.0.1\" | awk '{print$2}' | cut -d\":\" -f2 | sort | head -1`" __ipv6="`ifconfig | grep -e \"^\s*inet6-Adresse\" | awk '{print$2}' | grep -v -e \"^::1/\" | grep -v -e \"^fe80\" | cut -d\"/\" -f1 | sort | head -1`" else