added check for backupserver
This commit is contained in:
Vendored
+3
@@ -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:!')
|
||||||
|
|||||||
Reference in New Issue
Block a user