Skip to content

Commit

Permalink
Fixes #20642 - don't set hostname-override when localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
iNecas committed Aug 18, 2017
1 parent 1ecb139 commit 9cef1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/rhsm-katello-reconfigure.erb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ fi


FQDN=`hostname -f`
if [ $? == "0" ] && [ -d /etc/rhsm/facts/ ]; then
echo "{\"network.hostname-override\":\"$FQDN\"}" > /etc/rhsm/facts/katello.facts
if [ $? == "0" ] && [ "$FQDN" != "localhost" ] && [ -d /etc/rhsm/facts/ ]; then
echo "{\"network.hostname-override\":\"$FQDN\"}" > /etc/rhsm/faacts/katello.facts
fi

exit 0
Expand Down

0 comments on commit 9cef1da

Please sign in to comment.