Fix fqdn:port

mg@irantu ~
> echo "
mf-filter
mf-filter.lan
www.mf-filter
www.mf-filter.lan
mf-filter:80
mf-filter.lan:80
www.mf-filter:80
www.mf-filter.lan:80
https://mf-filter
https://mf-filter.lan
https://www.mf-filter
https://www.mf-filter.lan
https://mf-filter:80
https://mf-filter.lan:80
https://www.mf-filter:80
https://www.mf-filter.lan:80" | cut -d'/' -f3 | cut -d':' -f1-2 | cut 
-d":" -f1

mf-filter
mf-filter.lan
www.mf-filter
www.mf-filter.lan
mf-filter
mf-filter.lan
www.mf-filter
www.mf-filter.lan
mf-filter
mf-filter.lan
www.mf-filter
www.mf-filter.lan
mf-filter
mf-filter.lan
www.mf-filter
www.mf-filter.lan
This commit is contained in:
Michael Grote 2022-08-26 20:57:32 +02:00
parent 5ecfb1fa57
commit 5ef25b631f

View file

@ -106,7 +106,7 @@ function check_ping_connectivity {
mf_ping_connectivity=0
while [[ $mf_ping_connectivity -eq 0 ]]; do
# hole fqdn + port aus MF_API_URL und pinge an
mf_fqdn=$(echo "$MF_API_URL" | cut -d'/' -f3 | cut -d':' -f1-2)
mf_fqdn=$(echo "$MF_API_URL" | cut -d'/' -f3 | cut -d':' -f1-2 | cut -d":" -f1)
if ping -c 1 "$mf_fqdn" > /dev/null 2>&1 ; then
mf_ping_connectivity=1
else