We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6432d2e + e633983 commit edb8466Copy full SHA for edb8466
files/init-container.sh
@@ -7,6 +7,19 @@ fi
7
# clean yum cache to avoid download errors
8
sudo yum clean all
9
10
+# get list of user repos
11
+(
12
+ source /etc/os-release
13
+ case "$VERSION_ID" in
14
+ 8.2.*) XCPREL=8/8.2 ;;
15
+ 8.3.*) XCPREL=8/8.3 ;;
16
+ *) echo >&2 "WARNING: unknown release, not fetching user repo definitions" ;;
17
+ esac
18
+
19
+ curl -s https://koji.xcp-ng.org/repos/user/${XCPREL}/xcpng-users.repo |
20
+ sed '/^gpgkey=/ ipriority=1' | sudo tee /etc/yum.repos.d/xcp-ng-users.repo > /dev/null
21
+)
22
23
# disable repositories if needed
24
if [ -n "$DISABLEREPO" ]; then
25
sudo yum-config-manager --disable "$DISABLEREPO"
0 commit comments