removed status check and added exit to lock root
This commit is contained in:
2
debian/debian-essentials.sh
vendored
2
debian/debian-essentials.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user