mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
tests: always remove ipv6 entry from hosts file
This commit is contained in:
parent
9e6361077b
commit
ea104fa400
1 changed files with 2 additions and 6 deletions
8
.github/prepare_debian.sh
vendored
8
.github/prepare_debian.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue