mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #3783 from Security-Onion-Solutions/airgapfix
Fix Logic for Airgap distributed
This commit is contained in:
@@ -2285,7 +2285,7 @@ secrets_pillar(){
|
|||||||
|
|
||||||
securityonion_repo() {
|
securityonion_repo() {
|
||||||
# Remove all the current repos
|
# Remove all the current repos
|
||||||
if [[ "$OS" == "centos" ]]; then
|
if [[ "$OS" == "centos" && ! $is_airgap ]]; then
|
||||||
mkdir -p /root/oldrepos
|
mkdir -p /root/oldrepos
|
||||||
mv /etc/yum.repos.d/* /root/oldrepos/
|
mv /etc/yum.repos.d/* /root/oldrepos/
|
||||||
rm -f /etc/yum.repos.d/*
|
rm -f /etc/yum.repos.d/*
|
||||||
|
|||||||
Reference in New Issue
Block a user