mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[fix] Set all indents to tabs
This commit is contained in:
@@ -184,6 +184,23 @@ check_hive_init_then_reboot() {
|
||||
shutdown -r now
|
||||
}
|
||||
|
||||
check_network_manager_conf() {
|
||||
local gmdconf="/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf"
|
||||
local nmconf="/etc/NetworkManager/NetworkManager.conf"
|
||||
|
||||
if ! test -f "${gmdconf}.bak"; then
|
||||
{
|
||||
mv "$gmdconf" "${gmdconf}.bak",
|
||||
touch "$gmdconf",
|
||||
systemctl restart network-manager
|
||||
} >> $SETUPLOG 2>&1
|
||||
fi
|
||||
|
||||
if test -f "$nmconf"; then
|
||||
sed -i 's/managed=false/managed=true/g' "$nmconf" >> $SETUPLOG 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
check_socore_pass() {
|
||||
|
||||
if [ $COREPASS1 == $COREPASS2 ]; then
|
||||
@@ -282,6 +299,8 @@ copy_minion_tmp_files() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
copy_ssh_key() {
|
||||
|
||||
echo "Generating SSH key"
|
||||
@@ -358,7 +377,7 @@ detect_os() {
|
||||
exit
|
||||
fi
|
||||
# Install network manager so we can do interface stuff
|
||||
apt install -y network-manager
|
||||
apt-get install -y network-manager
|
||||
/bin/systemctl enable network-manager
|
||||
/bin/systemctl start network-manager
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user