From ef4882198a90c29e714136a7ca43ddc82c71aa34 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 16 Mar 2023 15:48:57 -0400 Subject: [PATCH] Force package update before syncing the repo --- setup/so-functions | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 5a9af8000..3a6d2bbfd 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1985,9 +1985,6 @@ repo_sync_local() { echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf logCmd "dnf repolist" - info "This is trying to work" - logCmd "dnf -c /root/repodownload.conf -y upgrade --allowerasing" - info "There should be an update here" # 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/" @@ -2385,7 +2382,7 @@ update_sudoers() { update_packages() { if [[ $is_rocky ]]; then logCmd "dnf repolist" - logCmd "dnf -y update --exclude=salt*,wazuh*,docker*,containerd*" + logCmd "dnf -y update --allowerasing --exclude=salt*,wazuh*,docker*,containerd*" else retry 150 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1 retry 150 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1