diff --git a/setup/so-functions b/setup/so-functions index 57f112982..03221d0e9 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1943,7 +1943,7 @@ securityonion_repo() { # if the package is updated when the update_packages function is called logCmd "yum -v -y update centos-release" info "Backing up the .repo files that were added by the centos-release package." - logCmd "find /etc/yum.repos.d/ -type f -not -name 'securityonion*repo' -exec mv -bvf {} /root/oldrepos/ +" + logCmd "mv -bvf /etc/yum.repos.d/CentOS* /root/oldrepos/" logCmd "yum repolist all" fi }