Directories

This commit is contained in:
Bob Mottram 2016-01-25 19:10:09 +00:00
parent 0181518f60
commit 3eed806474
1 changed files with 2 additions and 2 deletions

View File

@ -3533,7 +3533,7 @@ function enable_ssh_via_onion {
fi fi
apt-get -y install tor connect-proxy apt-get -y install tor connect-proxy
if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then 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 mkdir /home/$MY_USERNAME/.ssh
fi fi
echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config 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 chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
fi fi
if ! grep -q 'Host *.onion' /root/.ssh/config; then if ! grep -q 'Host *.onion' /root/.ssh/config; then
if [ ! -f /root/.ssh ]; then if [ ! -d /root/.ssh ]; then
mkdir /root/.ssh mkdir /root/.ssh
fi fi
echo 'Host *.onion' >> /root/.ssh/config echo 'Host *.onion' >> /root/.ssh/config