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:
@@ -2291,7 +2291,9 @@ securityonion_repo() {
|
|||||||
else
|
else
|
||||||
mkdir -p /root/oldrepos
|
mkdir -p /root/oldrepos
|
||||||
mv -v /etc/yum.repos.d/* /root/oldrepos/
|
mv -v /etc/yum.repos.d/* /root/oldrepos/
|
||||||
rm -rf /etc/yum.repos.d/*
|
ls -la /etc/yum.repos.d/
|
||||||
|
rm -rf /etc/yum.repos.d
|
||||||
|
mkdir -p /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/
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user