Closed skybert closed 11 years ago
That should be 127.0.0.1
Why is that important? 127.0.0.1
and 127.0.1.1
works equally well on everything I've thrown at it.
Some operating systems implement a loopback host address only for 127.0.0.1 while others implement the entire 127./8 range, but in either case the range is reserved for that purpose. RFC 3330
Try this on a Mac: ping 127.255.255.254
Then, try it on Linux.
But first of all, thanks for a great script!
Now back to the issue at hand: the package signing fails if the host doesn't have an entry in
/etc/hosts
. Or more specifically,oab-java.sh
useshostname --fqdn
, but this doesn't return anything if the host's name (as set in/etc/hostname
and returned by a simplehostname
) isn't available.I suggest enhancing the script to falling back to simple
hostname
output in case thehostname --fqdn
fails.Workaround for others that might experience this: simply do:
then remove the directory
oab-java.sh
created (/var/local/oab
) and re-run the script.Cheers,
-Torstein