Skip to content

Commit 14b2925

Browse files
committed
Fix EL10 additional packages setup (not existing ATM)
1 parent 41b5574 commit 14b2925

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

el_configurator.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,17 @@ if [ $? -eq 0 ]; then
411411
dnf install -4 -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm 2>> "${LOG_FILE}" || log "Failed to install epel-release" "ERROR"
412412
else
413413
dnf install -4 -y epel-release 2>> "${LOG_FILE}" || log "Failed to install epel-release, some tools like fail2ban will not be installed" "ERROR"
414-
dnf install -4 -y tar >> "${LOG_FILE}" || log "Cannot install tar" "ERROR"
415-
# The following packages are epel dependent
416-
dnf install -4 -y htop atop nmon iftop iptraf 2>> "${LOG_FILE}" || log "Failed to install additional tools" "ERROR"
417414
fi
415+
# The following packages are epel dependent
416+
dnf install -4 -y tar >> "${LOG_FILE}" || log "Cannot install tar" "ERROR"
417+
418+
# WIP: RHEL 10 ha no atop nor nmon for the moment
419+
if [ "${RELEASE}" -eq 10 ] && [ "${DIST}" == "rhel" ]; then
420+
available_packages="htop iftop iptraf"
421+
else
422+
available_packages="htop atop nmon iftop iptraf"
423+
fi
424+
dnf install -4 -y ${available_packages} 2>> "${LOG_FILE}" || log "Failed to install additional tools ${available_packages}" "ERROR"
418425
dnf config-manager --set-enabled crb 2>> "${LOG_FILE}" || log "Failed to enable crb" "ERROR"
419426
if [ "${CONFIGURE_AUTOMATIC_UPDATES}" != false ]; then
420427
dnf install -4 -y dnf-automatic 2>> "${LOG_FILE}" || log "Failed to install dnf-automatic" "ERROR"

0 commit comments

Comments
 (0)