log "Installing additional packages ..."
echo
- local -a pkgs_add=('colordiff' 'git' 'p7zip' 'screen')
+ # local -a pkgs_add=('colordiff' 'git' 'p7zip' 'screen')
+ local -a pkgs_add=()
local -a pkgs_remove=('nfs*' 'rpcbind')
- echo "Installing packages: ${pkgs_add[*]}"
- yum install -y "${pkgs_add[@]}"
-
- echo
- echo "Removing packages: ${pkgs_remove[*]}"
- yum remove -y "${pkgs_remove[@]}"
+ if [[ "${#pkgs_add[*]}" -gt 0 ]] ; then
+ echo
+ log "Installing additional packages from EPEL ..."
+ echo
+ echo "Installing packages: ${pkgs_add[*]}"
+ yum install -y "${pkgs_add[@]}"
+ fi
+
+ if [[ "${#pkgs_remove[*]}" -gt 0 ]] ; then
+ echo
+ log "Removing pointless packages ..."
+ echo
+ echo "Removing packages: ${pkgs_remove[*]}"
+ yum remove -y "${pkgs_remove[@]}"
+ fi
echo
echo "Creating /etc/gitconfig ..."
log "Installing additional packages ..."
echo
- local -a pkgs_add=('colordiff' 'git' 'p7zip' 'screen' 'NetworkManager-config-server')
+ # local -a pkgs_add=('colordiff' 'git' 'p7zip' 'screen' 'NetworkManager-config-server')
+ local -a pkgs_add=()
local -a pkgs_remove=('nfs*' 'rpcbind')
- echo "Installing packages: ${pkgs_add[*]}"
- yum install -y "${pkgs_add[@]}"
-
- echo
- echo "Removing packages: ${pkgs_remove[*]}"
- yum remove -y "${pkgs_remove[@]}"
+ if [[ "${#pkgs_add[*]}" -gt 0 ]] ; then
+ echo
+ log "Installing additional packages from EPEL ..."
+ echo
+ echo "Installing packages: ${pkgs_add[*]}"
+ yum install -y "${pkgs_add[@]}"
+ fi
+
+ if [[ "${#pkgs_remove[*]}" -gt 0 ]] ; then
+ echo
+ log "Removing pointless packages ..."
+ echo
+ echo "Removing packages: ${pkgs_remove[*]}"
+ yum remove -y "${pkgs_remove[@]}"
+ fi
echo
echo "Creating /etc/gitconfig ..."
echo "Calling install_pkgs_el9() ..."
echo
- local -a pkgs_add=('p7zip' 'screen')
+ # local -a pkgs_add=('p7zip' 'screen')
+ local -a pkgs_add=()
local -a pkgs_remove=()
if [[ "${#pkgs_add[*]}" -gt 0 ]] ; then