added mkdir for .ssh folder

This commit is contained in:
2024-03-13 11:30:44 -05:00
parent 46acb32c65
commit 439689b7d1

View File

@@ -43,6 +43,7 @@ rc-service sshd start
# add ssh keys for akanealw
if [[ -d /home/akanealw ]]; then
mkdir /home/akanealw/.ssh
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")
if [ $isInFile -eq 0 ]; then