-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrhsetup
More file actions
executable file
·24 lines (19 loc) · 833 Bytes
/
rhsetup
File metadata and controls
executable file
·24 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -euo pipefail
# This tiny script sets up bits of the pet container that require the VPN.
. /etc/os-release
# certs
cd /etc/pki/ca-trust/source/anchors
# contains the 2015 and 2022 IT root CA certs
sudo curl -O https://certs.corp.redhat.com/certs/Current-IT-Root-CAs.pem
sudo update-ca-trust extract
if [ "${ID}" = fedora ]; then
cd /etc/yum.repos.d/
sudo curl -L -O https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo
# https://docs.engineering.redhat.com/display/RCMDOC/RCM+Tools+Release+Guide?focusedCommentId=339593129#comment-339593129
sudo sed -i -e 's,$basearch,x86_64,' /etc/yum.repos.d/rcm-tools-fedora.repo
sudo dnf install -y rhel-packager
fi
if [ -e /run/host/etc/krb5.conf.d/redhat ]; then
sudo ln -s /run/host/etc/krb5.conf.d/redhat /etc/krb5.conf.d/
fi