Skip to content

Commit

Permalink
Merge pull request #15 from dustint-rh/rhsm_full_refresh_on_yum_config
Browse files Browse the repository at this point in the history
Fixes #5823 - full_refresh_on_yum=1 to rhsm.conf
  • Loading branch information
ehelms committed Jun 9, 2014
2 parents bc1f86c + 3c8f5fe commit b6c8db9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/rhsm-katello-reconfigure.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ else
sed -i "s|^baseurl\s*=.*|baseurl=$BASEURL|g" $CFG
fi

if grep --quiet full_refresh_on_yum $CFG; then
sed -i "s/full_refresh_on_yum\s*=.*$/full_refresh_on_yum = 1/g"
else
full_refresh_config="#config for on-premise management\nfull_refresh_on_yum = 1"
sed -i "s/baseurl.*/&\n\n$full_refresh_config/g" $CFG
fi

# restart goferd if it is installed and running
[ -f /etc/init.d/goferd ] && \
service goferd status >/dev/null && \
Expand Down

0 comments on commit b6c8db9

Please sign in to comment.