mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix Repo Logic
This commit is contained in:
@@ -2290,7 +2290,7 @@ securityonion_repo() {
|
|||||||
echo "This is airgap I don't need to add this repo"
|
echo "This is airgap I don't need to add this repo"
|
||||||
else
|
else
|
||||||
mkdir -p /root/oldrepos
|
mkdir -p /root/oldrepos
|
||||||
mv /etc/yum.repos.d/* /root/oldrepos/
|
mv -v /etc/yum.repos.d/* /root/oldrepos/
|
||||||
rm -rf /etc/yum.repos.d/*
|
rm -rf /etc/yum.repos.d/*
|
||||||
if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then
|
if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then
|
||||||
cp -f ../salt/common/yum_repos/securityonioncache.repo /etc/yum.repos.d/
|
cp -f ../salt/common/yum_repos/securityonioncache.repo /etc/yum.repos.d/
|
||||||
|
|||||||
Reference in New Issue
Block a user