From 1602bd3eca971c2c140d597a059a78714f9c8545 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 7 May 2026 01:49:57 +0000 Subject: [PATCH] added check for config file --- debian/debian-create-akanealw.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/debian-create-akanealw.sh b/debian/debian-create-akanealw.sh index 2fb0e8f..e125e0e 100644 --- a/debian/debian-create-akanealw.sh +++ b/debian/debian-create-akanealw.sh @@ -37,6 +37,12 @@ if [ $isInFile -eq 0 ] chmod 600 /home/akanealw/.ssh/* fi +# create config file in .ssh +if [[ ! -f /home/akanealw/.ssh/config ]] + then + touch /home/akanealw/.ssh/config +fi + isInFile=$(cat /home/akanealw/.ssh/authorized_keys | grep -c "server-akanealw") if [ $isInFile -eq 0 ] then