added check for backupserver

This commit is contained in:
2024-01-06 01:08:14 -06:00
parent 42224f12e5
commit a67f91b171
+3
View File
@@ -405,6 +405,9 @@ systemctl restart sshd
# lock root # lock root
isInFile=$(cat /etc/hostname | grep -c "BackupServer")
if [ $isInFile -eq 0 ]
then
if [[ -d /home/akanealw ]] if [[ -d /home/akanealw ]]
then then
isInFile=$(cat /etc/shadow | grep -c 'root:!') isInFile=$(cat /etc/shadow | grep -c 'root:!')