From 1cc8375031d957e11a8c772219473ee864216bc1 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 3 Feb 2023 06:40:37 -0500 Subject: [PATCH] Update debian-v5-install.sh --- install/debian-v5-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh index f8d23d2e..428fe812 100644 --- a/install/debian-v5-install.sh +++ b/install/debian-v5-install.sh @@ -87,7 +87,7 @@ msg_ok "Installed Dependencies" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - OS=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"