[fix] CentOS ami does not include NetworkManager, so install it

This commit is contained in:
William Wernert
2021-03-18 09:00:02 -04:00
parent 9a2b5fa301
commit 4f104c860e

View File

@@ -1006,6 +1006,9 @@ installer_prereq_packages() {
if ! yum versionlock > /dev/null 2>&1; then
yum -y install yum-plugin-versionlock >> "$setup_log" 2>&1
fi
if ! command -v nmcli > /dev/null 2>&1; then
yum -y install NetworkManager >> "$setup_log" 2>&1000m
fi
fi
logCmd "systemctl enable NetworkManager"
logCmd "systemctl start NetworkManager"