From f501fac9cd5f8a04066c6ba17327daffbde6df5a Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 10 May 2023 11:07:03 -0400 Subject: [PATCH] Don't sync down the repo for airgap --- setup/so-functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/so-functions b/setup/so-functions index e9bfc6054..fcd13d464 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1918,6 +1918,7 @@ securityonion_repo() { # Remove all the current repos if [[ $is_rocky ]]; then logCmd "dnf -v clean all" + logCmd "dnf -y erase rocky-repos" logCmd "mkdir -vp /root/oldrepos" logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/" logCmd "ls -la /etc/yum.repos.d/" @@ -1946,9 +1947,11 @@ securityonion_repo() { logCmd "dnf repolist all" fi if [[ $waitforstate ]]; then + if [[ ! is_airgap ]]; then # Build the repo locally so we can use it echo "Syncing Repo" repo_sync_local + fi fi fi }