removed status check and added exit to lock root

This commit is contained in:
2023-10-20 10:46:42 -05:00
parent e5a9397a38
commit 93241360ec

View File

@@ -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