use newer find syntax to allow the exec to work inside a quoted string

This commit is contained in:
Jason Ertel
2023-01-20 11:01:02 -05:00
parent fea4a1b33d
commit 1e4f9c9f26

View File

@@ -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 "find /etc/yum.repos.d/ -type f -not -name 'securityonion*repo' -exec mv -bvf {} /root/oldrepos/ +"
logCmd "yum repolist all"
fi
}