From e6ccb6bb31c9224f22892e75fb36d20e11de5506 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 4 Apr 2024 10:50:35 -0500 Subject: [PATCH] removed extra empty lines --- debian/debian-essentials.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index c6d3c64..ac591d1 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -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