Don't upgrade docker or containerd before versionlock is applied

This commit is contained in:
William Wernert
2021-11-18 14:14:18 -05:00
parent a0425a48e6
commit 6aae48bdae

View File

@@ -2816,7 +2816,7 @@ update_sudoers() {
update_packages() {
if [ "$OS" = 'centos' ]; then
yum repolist >> /dev/null
yum -y update --exclude=salt*,wazuh* >> "$setup_log"
yum -y update --exclude=salt*,wazuh*,docker*,containerd* >> "$setup_log"
else
retry 50 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
retry 50 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1