Force package update before syncing the repo

This commit is contained in:
Mike Reeves
2023-03-16 13:50:22 -04:00
parent 53e93f01c6
commit 6e3194486c

View File

@@ -1985,6 +1985,7 @@ repo_sync_local() {
echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf
dnf repolist
logCmd "dnf -c /root/repodownload.conf -y upgrade"
# Make sure we can get to the sig repo
logCmd "curl --retry 5 --retry-delay 60 -A 'gridinstall/$SOVERSION/$OS/$(uname -r)/1' https://sigs.securityonion.net/checkup --output /tmp/checkup"
logCmd "dnf reposync --norepopath -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"