removed extra empty lines

This commit is contained in:
2024-04-04 10:50:35 -05:00
parent 0c2aeb1b7b
commit e6ccb6bb31

View File

@@ -1,6 +1,5 @@
#!/bin/bash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
@@ -273,7 +272,6 @@ if [ $isInFile -eq 0 ]
# fi
fi
# authorized_keys akanealw
cp /home/akanealw/.ssh/authorized_keys /home/akanealw/.ssh/authorized_keys.bak > /dev/null 2>&1
isInFile=$(cat /home/akanealw/.ssh/authorized_keys | grep -c "winpc-akanealw")
@@ -292,7 +290,6 @@ if [ $isInFile -eq 0 ]
chmod 600 /home/akanealw/.ssh/*
fi
# authorized_keys root
cp /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bak
isInFile=$(cat /root/.ssh/authorized_keys | grep -c "winpc-root")
@@ -309,7 +306,6 @@ if [ $isInFile -eq 0 ]
chmod 600 /root/.ssh/authorized_keys
fi
# config /home/akanealw/.ssh/
isInFile=$(cat /home/akanealw/.ssh/config | grep -c "*-root")
if [ $isInFile -eq 0 ]
@@ -330,7 +326,6 @@ if [ $isInFile -eq 0 ]
chmod 600 /home/akanealw/.ssh/*
fi
# config /root/.ssh/
isInFile=$(cat /root/.ssh/config | grep -c "*-root")
if [ $isInFile -eq 0 ]
@@ -350,7 +345,6 @@ if [ $isInFile -eq 0 ]
chmod 600 /root/.ssh/*
fi
# server-akanealw
if [[ ! -f /home/akanealw/.ssh/server-akanealw ]]
then