From 20df47fdbe01d77f9773e5a34b11844975dfc5b4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 8 Mar 2022 10:00:53 -0500 Subject: [PATCH] Update wireguard-install.sh --- setup/wireguard-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index 9aee5a05..3574a71e 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -81,6 +81,8 @@ chmod +x install.sh ./install.sh --unattended options.conf &>/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 @@ -95,6 +97,7 @@ 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