From f0a8502c96a2f11d024d011e5ec271b0b7c80860 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 25 Jun 2023 00:00:32 -0400 Subject: [PATCH] Update install.func tweak --- misc/install.func | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/misc/install.func b/misc/install.func index 34b3d07d..4d044af3 100644 --- a/misc/install.func +++ b/misc/install.func @@ -83,6 +83,7 @@ setting_up_container() { echo -e " 🖧 Check Network Settings" exit 1 fi + rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" } @@ -132,16 +133,16 @@ motd_ssh() { # This function customizes the container by modifying the getty service and enabling auto-login for the root user customize() { if [[ "$PASSWORD" == "" ]]; then - msg_info "Customizing Container" - GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" - mkdir -p $(dirname $GETTY_OVERRIDE) - cat <$GETTY_OVERRIDE + msg_info "Customizing Container" + GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" + mkdir -p $(dirname $GETTY_OVERRIDE) + cat <$GETTY_OVERRIDE [Service] ExecStart= ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM EOF - systemctl daemon-reload - systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') - msg_ok "Customized Container" + systemctl daemon-reload + systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') + msg_ok "Customized Container" fi }