yum-utils

This commit is contained in:
Mike Reeves
2023-02-17 11:07:44 -05:00
parent 8b680693f4
commit 54fc07b5b8

View File

@@ -1949,11 +1949,11 @@ repo_sync_local() {
echo "gpgcheck=1" >> /root/repodownload.conf echo "gpgcheck=1" >> /root/repodownload.conf
echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf
REPOSYNC=$(rpm -qa | grep createrepo | wc -l) REPOSYNC=$(rpm -qa | grep yum-utils | wc -l)
if [[ ! "$REPOSYNC" -gt 0 ]]; then if [[ ! "$REPOSYNC" -gt 0 ]]; then
# Install reposync # Install reposync
info "Installing createrepo" info "Installing yum-utils"
logCmd "dnf -y install -c /root/repodownload.conf createrepo" logCmd "dnf -y install -c /root/repodownload.conf yum-utils"
else else
info "We have what we need to sync" info "We have what we need to sync"
fi fi