Fix error in calculating IPv4 addresses.
This commit is contained in:
parent
45f35f6b47
commit
5f37a50a6c
@ -31,8 +31,8 @@ _PHP_VERSION=7.1.2
|
||||
|
||||
## - Determin IP-Adresses
|
||||
## -
|
||||
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`"
|
||||
if ifconfig | grep -i -q -E "inet [address|Adresse]" ; then
|
||||
__ipv4="`ifconfig | grep -E \"^\s*inet [address|Adresse]\" | grep -v \"127.0.0.1\" | awk '{print$2}' | cut -d\":\" -f2 | sort`"
|
||||
__ipv6="`ifconfig | grep -e \"^\s*inet6-Adresse\" | awk '{print$2}' | grep -v -e \"^::1/\" | grep -v -e \"^fe80\" | cut -d\"/\" -f1 | sort`"
|
||||
else
|
||||
__ipv4="`ifconfig | grep -e \"^\s*inet \" | grep -v \"127.0.0.1\" | awk '{print$2}' | sort`"
|
||||
@ -360,6 +360,9 @@ IPv4_FIRST=`echo $_IPv4_ADDRESSES | cut -d " " -f1`
|
||||
HTTPD_INFO_ADDRESSES="$_IPv4_ADDRESSES"
|
||||
IPv4_ADDRESSES="127.0.0.1 $_IPv4_ADDRESSES"
|
||||
|
||||
echo "HTTPD_INFO_ADDRESSES: $HTTPD_INFO_ADDRESSES"
|
||||
exit
|
||||
|
||||
echo ""
|
||||
echo "Type:"
|
||||
echo -e "\t\033[33mNone\033[m if IPv6 is not suppoerted"
|
||||
@ -1434,6 +1437,11 @@ config_params="--prefix=$PREFIX \
|
||||
--enable-xml2enc \
|
||||
--enable-authnz-ldap \
|
||||
--enable-proxy=static \
|
||||
--enable-proxy-connect=static \
|
||||
--enable-proxy-http=static \
|
||||
--enable-proxy-fdpass=static \
|
||||
--enable-proxy-fcgi=statuc \
|
||||
--enable-proxy-wstunnel=static \
|
||||
--enable-proxy-html=static \
|
||||
--enable-slotmem-shm \
|
||||
--with-apr=/usr/local/apr/bin/apr-1-config \
|
||||
|
Loading…
Reference in New Issue
Block a user