diff --git a/jboss/container/wildfly/launch-config/os/added/launch/launch-common.sh b/jboss/container/wildfly/launch-config/os/added/launch/launch-common.sh index 37e1d6c0..8e284411 100644 --- a/jboss/container/wildfly/launch-config/os/added/launch/launch-common.sh +++ b/jboss/container/wildfly/launch-config/os/added/launch/launch-common.sh @@ -121,29 +121,7 @@ function splitAttributesStringIntoLines() { # The host could have 1 or more ipv4 and/or ipv6 addresses # For this function we need to return a single ipv4 address # -# mapfile is a Bash builtin function -# MAPFILE is the default variable name used by Bash when using the builtin function mapfile. https://www.geeksforgeeks.org/mapfile-command-in-linux-with-examples/ -# -# To not be dependend on external tooling like python, the /proc directory holds information about -# the available IP addresses 'cat /proc/net/fib_tree'. -# Having access to all available IP addresses a filter has to be applied. -# Therefor awk with a block-pattern is used , see https://unix.stackexchange.com/questions/365225/how-to-get-the-ipv4-address-for-an-interface-from-proc -# -# The awk filtered output based on information retrieved from /proc/net/fib_tree is put in the -# variable MAPFILE as an indexed array via the function mapfile. -# -# The filtered output is sorted so that IPv4 address is the first in the array (MAPFILE[0]). -# -# As an addition, a message is logged when there are multiple ipv4 addresses with remediation. -# function get_host_ipv4() { - mapfile < <(awk '/32 host/ { print f } {f=$2}' <<< "$(