File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -411,10 +411,17 @@ if [ $? -eq 0 ]; then
411
411
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"
412
412
else
413
413
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"
417
414
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"
418
425
dnf config-manager --set-enabled crb 2>> " ${LOG_FILE} " || log " Failed to enable crb" " ERROR"
419
426
if [ " ${CONFIGURE_AUTOMATIC_UPDATES} " != false ]; then
420
427
dnf install -4 -y dnf-automatic 2>> " ${LOG_FILE} " || log " Failed to install dnf-automatic" " ERROR"
You can’t perform that action at this time.
0 commit comments