Browse Source

Directories

Bob Mottram 9 years ago
parent
commit
3eed806474
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone

+ 2
- 2
src/freedombone View File

3533
     fi
3533
     fi
3534
     apt-get -y install tor connect-proxy
3534
     apt-get -y install tor connect-proxy
3535
     if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then
3535
     if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then
3536
-        if [ ! -f /home/$MY_USERNAME/.ssh ]; then
3536
+        if [ ! -d /home/$MY_USERNAME/.ssh ]; then
3537
             mkdir /home/$MY_USERNAME/.ssh
3537
             mkdir /home/$MY_USERNAME/.ssh
3538
         fi
3538
         fi
3539
         echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
3539
         echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
3542
         chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
3542
         chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
3543
     fi
3543
     fi
3544
     if ! grep -q 'Host *.onion' /root/.ssh/config; then
3544
     if ! grep -q 'Host *.onion' /root/.ssh/config; then
3545
-        if [ ! -f /root/.ssh ]; then
3545
+        if [ ! -d /root/.ssh ]; then
3546
             mkdir /root/.ssh
3546
             mkdir /root/.ssh
3547
         fi
3547
         fi
3548
         echo 'Host *.onion' >> /root/.ssh/config
3548
         echo 'Host *.onion' >> /root/.ssh/config