This is a common error and there's no reason the script can't
at least tell you it's a really bad idea. One might argue it
could even successfully proactively truncate the host parameter
at the first dot, but that's a little controlling, perhaps.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
echo "$0: use a proper short hostname (hostname -s), not 'localhost', in $conf section $type.$id; skipping entry"
return 1
fi
+ if expr match "$host" '.*\.' > /dev/null 2>&1; then
+ echo "$0: $conf section $type.$id"
+ echo "contains host=$host, which contains dots; this is probably wrong"
+ echo "It must match the result of hostname -s"
+ fi
ssh=""
rootssh=""
sshdir=$PWD