Merge pull request #3522 from Security-Onion-Solutions/fix/install-network-manager

[fix] CentOS ami does not include NetworkManager, so install it
This commit is contained in:
William Wernert
2021-03-18 09:10:41 -04:00
committed by GitHub

View File

@@ -1003,9 +1003,12 @@ installer_progress_loop() {
installer_prereq_packages() { installer_prereq_packages() {
if [ "$OS" == centos ]; then if [ "$OS" == centos ]; then
if [[ ! $is_iso ]]; then if [[ ! $is_iso ]]; then
if ! yum versionlock > /dev/null 2>&1; then if ! yum versionlock > /dev/null 2>&1; then
yum -y install yum-plugin-versionlock >> "$setup_log" 2>&1 yum -y install yum-plugin-versionlock >> "$setup_log" 2>&1
fi fi
if ! command -v nmcli > /dev/null 2>&1; then
yum -y install NetworkManager >> "$setup_log" 2>&1
fi
fi fi
logCmd "systemctl enable NetworkManager" logCmd "systemctl enable NetworkManager"
logCmd "systemctl start NetworkManager" logCmd "systemctl start NetworkManager"