From ea104fa400acfa017e9d7690dea19edef787421f Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Tue, 23 Jul 2024 20:52:59 +0200 Subject: tests: always remove ipv6 entry from hosts file diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index dcf778b..3f4674a 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh @@ -64,13 +64,9 @@ apt-get -y install perl \ iproute2 # remove ipv6 interface from hosts -if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then - sed '/^::1/d' /etc/hosts > /tmp/hosts - cp -f /tmp/hosts /etc/hosts -fi - +sed '/^::1/d' /etc/hosts > /tmp/hosts +cp -f /tmp/hosts /etc/hosts ip addr show - cat /etc/hosts # apache -- cgit v0.10-9-g596f