X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai-redep;fp=fai-redep;h=4269aa3d7b1b137a0abc7406b0aeb163f0b758b4;hp=7c8b9dd2ea3c9e5eabb6ec899adc602c8aac28f7;hb=ceeb4e46d3bb326d01fcc7ed98d94ab0b580eda3;hpb=79cd04733bf570db299ef09195c498a63f3f3fd5 diff --git a/fai-redep b/fai-redep index 7c8b9dd..4269aa3 100755 --- a/fai-redep +++ b/fai-redep @@ -59,7 +59,8 @@ m() { printf "$pre %s\n" "$*"; "$@"; } # i use faiserver as a dns alias, but ssh key is associated with # a canonical hostname and we will have ssh warning spam unless we # use it, so look it up just to avoid the warning spam. -faiserver_host=$(/a/exe/chost $host) || faiserver_host=$host +faiserver_host=$(/a/exe/chost $host) +# faiserver_host=$host faiserver_addr=$(host $host | sed -rn 's/^\S+ has address //p;T;q' ||:) if ! ip a | grep "^ *inet.\? $faiserver_addr" &>/dev/null; then