From f6679ae12fb1d3034d4416ed1af8999708d0d901 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 8 Mar 2022 09:30:26 -0500 Subject: [PATCH] Update debian-install.sh --- setup/debian-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/debian-install.sh b/setup/debian-install.sh index 795d7800..079842d3 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -59,6 +59,8 @@ apt-get install -y curl &>/dev/null apt-get install -y sudo &>/dev/null echo -e "${CM}${CL} \r" +PASS=$(grep -w "root" /etc/shadow | cut -b6); + if [[ $PASS != $ ]]; then echo -en "${GN} Customizing Container... " rm /etc/motd rm /etc/update-motd.d/10-uname @@ -73,7 +75,8 @@ EOF systemctl daemon-reload systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') echo -e "${CM}${CL} \r" - + fi + echo -en "${GN} Cleanup... " apt-get autoremove >/dev/null apt-get autoclean >/dev/null