Skip to content

Commit a222748

Browse files
committed
Use ip instead of ifconfig and change #! to /usr/bin/env
1 parent 4b6b2ef commit a222748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/scripts/grafton-sanity-check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script was initially written to solve the bug:
44
# https://bugzilla.redhat.com/show_bug.cgi?id=1405447
@@ -59,7 +59,7 @@ EOF
5959
6060
# Copy all the files to MASTER and compare
6161
match=0
62-
if ifconfig | egrep -q $MASTERIP; then
62+
if ip a l | egrep -q $MASTERIP; then
6363
# Give some time for the operation to finish on other nodes
6464
sleep 2
6565
for node in `echo $1 | tr ',' ' '`; do

0 commit comments

Comments
 (0)