mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Don't sync down the repo for airgap
This commit is contained in:
@@ -1918,6 +1918,7 @@ securityonion_repo() {
|
|||||||
# Remove all the current repos
|
# Remove all the current repos
|
||||||
if [[ $is_rocky ]]; then
|
if [[ $is_rocky ]]; then
|
||||||
logCmd "dnf -v clean all"
|
logCmd "dnf -v clean all"
|
||||||
|
logCmd "dnf -y erase rocky-repos"
|
||||||
logCmd "mkdir -vp /root/oldrepos"
|
logCmd "mkdir -vp /root/oldrepos"
|
||||||
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
||||||
logCmd "ls -la /etc/yum.repos.d/"
|
logCmd "ls -la /etc/yum.repos.d/"
|
||||||
@@ -1946,9 +1947,11 @@ securityonion_repo() {
|
|||||||
logCmd "dnf repolist all"
|
logCmd "dnf repolist all"
|
||||||
fi
|
fi
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
|
if [[ ! is_airgap ]]; then
|
||||||
# Build the repo locally so we can use it
|
# Build the repo locally so we can use it
|
||||||
echo "Syncing Repo"
|
echo "Syncing Repo"
|
||||||
repo_sync_local
|
repo_sync_local
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user