Advertisement
krtek_net

Som opravil...

Nov 21st, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.67 KB | None | 0 0
  1. diff --git a/Sanity/gssapi-with-mic/runtest.sh b/Sanity/gssapi-with-mic/runtest.sh
  2. index e7a4935..2075644 100755
  3. --- a/Sanity/gssapi-with-mic/runtest.sh
  4. +++ b/Sanity/gssapi-with-mic/runtest.sh
  5. @@ -38,7 +38,10 @@ KRB5VAR="/var/kerberos/krb5kdc"
  6.  SSHCONF="/etc/ssh"
  7.  USR="tester"
  8.  USR2="joozi"
  9. -IP=`ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | head -n1`
  10. +IP=$(set -o pipefail;
  11. +    ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | head -n1 ||
  12. +    ip addr show scope global | grep inet | head -n 1 | cut -d '/' -f 1 | rev | cut -d ' ' -f 1 | rev
  13. +    )
  14.  DNS="kerberos.example.com"
  15.  TMP=`mktemp`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement