Skip to content

Commit

Permalink
Fixes #14223 - Handles atomic machine detection properly
Browse files Browse the repository at this point in the history
Made the code check for "Atomic Host" in /etc/os-release

Works great for redhat 7.2
  • Loading branch information
parthaa committed Mar 15, 2016
1 parent a28bcf1 commit 0a59e1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/rhsm-katello-reconfigure.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ chmod 644 $KATELLO_CERT_DIR/$KATELLO_SERVER_CA_CERT
echo "$KATELLO_DEFAULT_CA_DATA" > $KATELLO_CERT_DIR/$KATELLO_DEFAULT_CA_CERT
chmod 644 $KATELLO_CERT_DIR/$KATELLO_DEFAULT_CA_CERT

# if not atomic machine, regular rhel then handle traditional way
if [ -e "/run/ostree-booted" ]
# if atomic machine handlle it the atomic way, else handle the regular rhel way
grep -i 'Atomic Host' /etc/os-release 2>&1> /dev/null
if [ $? -eq 0 ]
then
#atomic setup
BASEURL=https://$KATELLO_SERVER/pulp/ostree/web/
Expand Down

0 comments on commit 0a59e1a

Please sign in to comment.