mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-18 15:02:50 +01:00
Fix syntax for $is_cloud test
This commit is contained in:
@@ -55,7 +55,7 @@ add_interface_bond0() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! [[ is_cloud ]]; then
|
if ! [[ $is_cloud ]]; then
|
||||||
# Check if the bond slave connection has already been created
|
# Check if the bond slave connection has already been created
|
||||||
nmcli -f name,uuid -p con | grep -q "bond0-slave-$BNIC"
|
nmcli -f name,uuid -p con | grep -q "bond0-slave-$BNIC"
|
||||||
local found_int=$?
|
local found_int=$?
|
||||||
@@ -77,7 +77,7 @@ add_interface_bond0() {
|
|||||||
|
|
||||||
ip link set dev "$BNIC" arp off multicast off allmulticast off promisc on
|
ip link set dev "$BNIC" arp off multicast off allmulticast off promisc on
|
||||||
|
|
||||||
if ! [[ is_cloud ]]; then
|
if ! [[ $is_cloud ]]; then
|
||||||
# Bring the slave interface up
|
# Bring the slave interface up
|
||||||
if [[ $verbose == true ]]; then
|
if [[ $verbose == true ]]; then
|
||||||
nmcli con up "bond0-slave-$BNIC"
|
nmcli con up "bond0-slave-$BNIC"
|
||||||
|
|||||||
Reference in New Issue
Block a user