Add more logging to setup process

This commit is contained in:
Mike Reeves
2022-09-12 15:06:29 -04:00
parent a168aa8b81
commit f555846544
3 changed files with 20 additions and 21 deletions

View File

@@ -1868,7 +1868,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' -print0 | xargs -0 -I {} 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
}