Disable unattended upgrades before install pkgs
Related-Prod: PRODX-43174
Change-Id: I4dc611b95feef7d00d11d5c86bb9040590e12b6e
diff --git a/de/heat-templates/scripts/functions.sh b/de/heat-templates/scripts/functions.sh
index 2edb704..ae06d97 100644
--- a/de/heat-templates/scripts/functions.sh
+++ b/de/heat-templates/scripts/functions.sh
@@ -144,10 +144,13 @@
systemctl restart atop
}
-function install_required_packages {
+function disable_unattended_upgr {
# Disable unattended upgrades
sed -i 's/1/0/' /etc/apt/apt.conf.d/20auto-upgrades
sed -i 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/g' /etc/apt/apt.conf.d/*
+}
+
+function install_required_packages {
local pkg_list="apt-transport-https ca-certificates curl software-properties-common jq unzip atop iptables-persistent socat ntp rng-tools open-iscsi nfs-common"
if [[ "${CONFIGURE_HUGE_PAGES}" == true ]]; then