Fix Logic for Airgap distributed

This commit is contained in:
Mike Reeves
2021-04-07 10:03:33 -04:00
parent fb02a10bfb
commit 5cd7d65b3f

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