diff options
author | Sven Nierlein <sven@consol.de> | 2024-07-23 18:52:59 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2024-07-23 19:08:57 (GMT) |
commit | ea104fa400acfa017e9d7690dea19edef787421f (patch) | |
tree | 21afbb7ac7f1e5f762f3876ce6101dc13c964bd5 /.github/prepare_debian.sh | |
parent | 9e6361077b7fd690d00ab8f68ca9f2c435dd81a9 (diff) | |
download | monitoring-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.sh | 8 |
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 |
67 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then | 67 | sed '/^::1/d' /etc/hosts > /tmp/hosts |
68 | sed '/^::1/d' /etc/hosts > /tmp/hosts | 68 | cp -f /tmp/hosts /etc/hosts |
69 | cp -f /tmp/hosts /etc/hosts | ||
70 | fi | ||
71 | |||
72 | ip addr show | 69 | ip addr show |
73 | |||
74 | cat /etc/hosts | 70 | cat /etc/hosts |
75 | 71 | ||
76 | # apache | 72 | # apache |