"hostname" can return either the hostname or the fqdn depending on
configuration.
This refers to the issue http://tracker.ceph.com/issues/6706
Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
Reviewed-by: Sage Weil <sage@inktank.com>
# mapped to this host?
host=`ceph-conf -n $name host`
- if [ "$host" != `hostname` ]; then
+ if [ "$host" != `hostname -s` ]; then
continue
fi
# mapped to this host?
host=`ceph-conf -n $name host`
- if [ "$host" != `hostname` ]; then
+ if [ "$host" != `hostname -s` ]; then
continue
fi