packages
This commit is contained in:
parent
5c0956c09b
commit
25e08725a8
1 changed files with 5 additions and 4 deletions
|
@ -1284,6 +1284,7 @@ spcd_step__python_modules() {
|
|||
|
||||
spcd_step__install_packages() {
|
||||
spcd_step_in "OS packages"
|
||||
local file
|
||||
# epel
|
||||
spcd_step "EPEL"
|
||||
case "${SPCD_OS_ID}" in
|
||||
|
@ -1304,15 +1305,15 @@ spcd_step__install_packages() {
|
|||
;;
|
||||
*) ;;
|
||||
esac
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/epel${spcd_spr__file}.repo" \
|
||||
for file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/epel${file}.repo" \
|
||||
"|^metalink|#metalink|" \
|
||||
"|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \
|
||||
"|^#baseurl|baseurl|"
|
||||
done
|
||||
spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo"
|
||||
file="/etc/yum.repos.d/epel-cisco-openh264.repo"
|
||||
if [ -f "${spcd_spr__file}" ]; then
|
||||
spcd_os_sed "${spcd_spr__file}" \
|
||||
spcd_os_sed "${file}" \
|
||||
"|^enabled=1|#enabled=0|"
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue