mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user