From 93241360ec43ec48bd1b2b3e2bc93fbdb827709f Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 20 Oct 2023 10:46:42 -0500 Subject: [PATCH] removed status check and added exit to lock root --- debian/debian-essentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index 94defae..2b9faf4 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -216,7 +216,6 @@ if [ $isInFile -eq 0 ] echo "APT::Periodic::Unattended-Upgrade \"1\";" >> /etc/apt/apt.conf.d/20auto-upgrades systemctl enable unattended-upgrades systemctl start unattended-upgrades - systemctl status unattended-upgrades else echo "Unattended upgrades already configured." fi @@ -255,6 +254,7 @@ fi if [[ -d /home/akanealw ]] then passwd -l root + exit else echo "akanealw account not found, not locking root." fi