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

Fix Logic for Airgap distributed
This commit is contained in:
Mike Reeves
2021-04-07 10:18:07 -04:00
committed by GitHub

View File

@@ -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/*