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
|
echo "APT::Periodic::Unattended-Upgrade \"1\";" >> /etc/apt/apt.conf.d/20auto-upgrades
|
||||||
systemctl enable unattended-upgrades
|
systemctl enable unattended-upgrades
|
||||||
systemctl start unattended-upgrades
|
systemctl start unattended-upgrades
|
||||||
systemctl status unattended-upgrades
|
|
||||||
else
|
else
|
||||||
echo "Unattended upgrades already configured."
|
echo "Unattended upgrades already configured."
|
||||||
fi
|
fi
|
||||||
@@ -255,6 +254,7 @@ fi
|
|||||||
if [[ -d /home/akanealw ]]
|
if [[ -d /home/akanealw ]]
|
||||||
then
|
then
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
exit
|
||||||
else
|
else
|
||||||
echo "akanealw account not found, not locking root."
|
echo "akanealw account not found, not locking root."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user