summaryrefslogtreecommitdiffstats
path: root/.github/prepare_debian.sh
diff options
context:
space:
mode:
authorSven Nierlein <sven@consol.de>2024-07-23 18:52:59 (GMT)
committerSven Nierlein <sven@nierlein.org>2024-07-23 19:08:57 (GMT)
commitea104fa400acfa017e9d7690dea19edef787421f (patch)
tree21afbb7ac7f1e5f762f3876ce6101dc13c964bd5 /.github/prepare_debian.sh
parent9e6361077b7fd690d00ab8f68ca9f2c435dd81a9 (diff)
downloadmonitoring-plugins-ea104fa400acfa017e9d7690dea19edef787421f.tar.gz
tests: always remove ipv6 entry from hosts file
Diffstat (limited to '.github/prepare_debian.sh')
-rwxr-xr-x.github/prepare_debian.sh8
1 files changed, 2 insertions, 6 deletions
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 \
64 iproute2 64 iproute2
65 65
66# remove ipv6 interface from hosts 66# remove ipv6 interface from hosts
67if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then 67sed '/^::1/d' /etc/hosts > /tmp/hosts
68 sed '/^::1/d' /etc/hosts > /tmp/hosts 68cp -f /tmp/hosts /etc/hosts
69 cp -f /tmp/hosts /etc/hosts
70fi
71
72ip addr show 69ip addr show
73
74cat /etc/hosts 70cat /etc/hosts
75 71
76# apache 72# apache