mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
yum-utils
This commit is contained in:
@@ -1949,11 +1949,11 @@ repo_sync_local() {
|
||||
echo "gpgcheck=1" >> /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
|
||||
# Install reposync
|
||||
info "Installing createrepo"
|
||||
logCmd "dnf -y install -c /root/repodownload.conf createrepo"
|
||||
info "Installing yum-utils"
|
||||
logCmd "dnf -y install -c /root/repodownload.conf yum-utils"
|
||||
else
|
||||
info "We have what we need to sync"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user