[fix] Set all indents to tabs

This commit is contained in:
William Wernert
2020-03-25 15:51:14 -04:00
parent efda3b9295
commit 83c2edb0d9

View File

@@ -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