Merge pull request #3790 from Security-Onion-Solutions/airgapfix

Fix Logic for Airgap distributed
This commit is contained in:
Josh Patterson
2021-04-07 12:37:11 -04:00
committed by GitHub

View File

@@ -2285,7 +2285,7 @@ secrets_pillar(){
securityonion_repo() {
# Remove all the current repos
if [[ "$OS" == "centos" && ! $is_airgap ]]; then
if [[ "$OS" == "centos" && $is_airgap ]]; then
mkdir -p /root/oldrepos
mv /etc/yum.repos.d/* /root/oldrepos/
rm -f /etc/yum.repos.d/*