From 5cd7d65b3f9c3d00115d4a181f86a4901abd1eff Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 7 Apr 2021 10:03:33 -0400 Subject: [PATCH] Fix Logic for Airgap distributed --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 214896572..9fef19875 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2285,7 +2285,7 @@ secrets_pillar(){ securityonion_repo() { # Remove all the current repos - if [[ "$OS" == "centos" ]]; then + if [[ "$OS" == "centos" && ! $is_airgap ]]; then mkdir -p /root/oldrepos mv /etc/yum.repos.d/* /root/oldrepos/ rm -f /etc/yum.repos.d/*