mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
dont use logCmd for moving repo files after centos-release update
This commit is contained in:
@@ -2347,12 +2347,12 @@ securityonion_repo() {
|
|||||||
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
||||||
logCmd "ls -la /etc/yum.repos.d/"
|
logCmd "ls -la /etc/yum.repos.d/"
|
||||||
logCmd "cp -f $repo_conf_file /etc/yum.repos.d/"
|
logCmd "cp -f $repo_conf_file /etc/yum.repos.d/"
|
||||||
logCmd "yum -v repolist all"
|
logCmd "yum repolist all"
|
||||||
# update this package because the repo config files get added back
|
# update this package because the repo config files get added back
|
||||||
# if the package is updated when the update_packages function is called
|
# if the package is updated when the update_packages function is called
|
||||||
logCmd "yum -v -y update centos-release"
|
logCmd "yum -v -y update centos-release"
|
||||||
# move the repo files that we added by the centos-release package
|
echo "Move 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/"
|
find /etc/yum.repos.d/ -type f -not -name 'securityonion*repo' -print0 | xargs -0 -I {} mv -bvf {} /root/oldrepos/
|
||||||
logCmd "yum repolist all"
|
logCmd "yum repolist all"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user