From fbe54b9ee8cc40d53248eb442b997db8c33f3b6b Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 19 Jan 2022 12:33:58 -0500 Subject: [PATCH] yum clean all needs to happen before repo files are moved or the clean doesnt clean anything --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 009a9133b..968742460 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2343,11 +2343,11 @@ securityonion_repo() { if [[ "$INTERWEBS" == "AIRGAP" ]]; then echo "This is airgap I don't need to add this repo" else + logCmd "yum clean all" logCmd "mkdir -vp /root/oldrepos" logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/" logCmd "ls -la /etc/yum.repos.d/" logCmd "rm -vrf /etc/yum.repos.d" - logCmd "yum clean all" logCmd "yum repolist all" logCmd "mkdir -vp /etc/yum.repos.d" if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then