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.
1 parent 681fbba commit 3a8dbaaCopy full SHA for 3a8dbaa
elements/extra-repos/README.rst
@@ -0,0 +1,7 @@
1
+===========
2
+extra-repos
3
4
+
5
+Installs extra repos prior to package install
6
7
+* ``DIB_EXTRA_REPOS`` A space separated list of repos to install
elements/extra-repos/pre-install.d/01-extra-repos
@@ -0,0 +1,22 @@
+#!/bin/bash
+if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
+ set -x
+fi
+set -euo pipefail
8
9
+case "$DISTRO_NAME" in
10
+ centos* | rhel* | rocky*)
11
+ rpm -q dnf-plugins-core || dnf install -y dnf-plugins-core
12
+ for repo in ${DIB_EXTRA_REPOS:-}; do
13
+ dnf config-manager --add-repo "$repo"
14
+ done
15
+ ;;
16
+ *)
17
+ echo "Distro \"$DISTRO_NAME\" is not supported"
18
+ exit 1
19
20
+esac
21
22
+exit 0
0 commit comments