From cfdf3cf8c4df77aab77d1479cb59d723ca40ca84 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 8 Mar 2022 09:54:30 -0500 Subject: [PATCH] Update mariadb-install.sh --- setup/mariadb-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/mariadb-install.sh b/setup/mariadb-install.sh index ba82d3b1..27b84f15 100644 --- a/setup/mariadb-install.sh +++ b/setup/mariadb-install.sh @@ -71,6 +71,8 @@ sudo a2enconf adminer &>/dev/null sudo systemctl reload apache2 &>/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 @@ -83,8 +85,9 @@ 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//') +systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') echo -e "${CM}${CL} \r" + fi echo -en "${GN} Cleanup... " apt-get autoremove >/dev/null