#!/bin/bash

subscription-manager release --set=7.6
reposync -p /var/www/channels-rhel7-eus/7.6 --repoid=rhel-ha-for-rhel-7-server-eus-rpms --downloadcomps
createrepo --update --simple-md-filenames -vg /var/www/channels-rhel7-eus/7.6/rhel-ha-for-rhel-7-server-eus-rpms/comps.xml /var/www/channels-rhel7-eus/7.6/rhel-ha-for-rhel-7-server-eus-rpms
reposync -p /var/www/channels-rhel7-eus/7.6 --repoid=rhel-7-server-eus-rpms --downloadcomps
createrepo --update --simple-md-filenames -vg /var/www/channels-rhel7-eus/7.6/rhel-7-server-eus-rpms/comps.xml /var/www/channels-rhel7-eus/7.6/rhel-7-server-eus-rpms
subscription-manager release --unset

