From 3eed8064743bd64da98bd2bc09f46d368de93d15 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Jan 2016 19:10:09 +0000 Subject: [PATCH] Directories --- src/freedombone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone b/src/freedombone index ea98b523..59702a5f 100755 --- a/src/freedombone +++ b/src/freedombone @@ -3533,7 +3533,7 @@ function enable_ssh_via_onion { fi apt-get -y install tor connect-proxy if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then - if [ ! -f /home/$MY_USERNAME/.ssh ]; then + if [ ! -d /home/$MY_USERNAME/.ssh ]; then mkdir /home/$MY_USERNAME/.ssh fi echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config @@ -3542,7 +3542,7 @@ function enable_ssh_via_onion { chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config fi if ! grep -q 'Host *.onion' /root/.ssh/config; then - if [ ! -f /root/.ssh ]; then + if [ ! -d /root/.ssh ]; then mkdir /root/.ssh fi echo 'Host *.onion' >> /root/.ssh/config