ci: assume subscribed machines
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
e4d912f348
commit
c25e58bc9d
2 changed files with 0 additions and 11 deletions
|
|
@ -63,16 +63,6 @@ if [[ $ID == "rhel" && ${VERSION_ID%.*} == "9" ]]; then
|
||||||
sudo systemctl stop tmp.mount && sudo systemctl mask tmp.mount
|
sudo systemctl stop tmp.mount && sudo systemctl mask tmp.mount
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ID == "rhel" && $VERSION_ID == "8.3" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then
|
|
||||||
greenprint "Registering RHEL"
|
|
||||||
sudo chmod +x "$RHN_REGISTRATION_SCRIPT"
|
|
||||||
for _ in {0..4}
|
|
||||||
do
|
|
||||||
sudo "$RHN_REGISTRATION_SCRIPT" && break
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Distro version that this script is running on.
|
# Distro version that this script is running on.
|
||||||
DISTRO_VERSION=${ID}-${VERSION_ID}
|
DISTRO_VERSION=${ID}-${VERSION_ID}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@ if [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 8 ]] && ! rpm -q
|
||||||
sudo rpm -Uvh /tmp/epel.rpm
|
sudo rpm -Uvh /tmp/epel.rpm
|
||||||
elif [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 9 ]]; then
|
elif [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 9 ]]; then
|
||||||
# we have our own small epel for EL9, let's install it
|
# we have our own small epel for EL9, let's install it
|
||||||
|
|
||||||
# install Red Hat certificate, otherwise dnf copr fails
|
# install Red Hat certificate, otherwise dnf copr fails
|
||||||
curl -LO --insecure https://hdn.corp.redhat.com/rhel8-csb/RPMS/noarch/redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm
|
curl -LO --insecure https://hdn.corp.redhat.com/rhel8-csb/RPMS/noarch/redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm
|
||||||
sudo dnf install -y ./redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm dnf-plugins-core
|
sudo dnf install -y ./redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm dnf-plugins-core
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue