Bob Mottram 6 years ago
parent
commit
b6a7f9e370
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-app-gogs

+ 2
- 2
src/freedombone-app-gogs View File

655
         echo $'No Tor installation found. Gogs onion site cannot be configured.'
655
         echo $'No Tor installation found. Gogs onion site cannot be configured.'
656
         exit 877367
656
         exit 877367
657
     fi
657
     fi
658
-    if ! grep -q "hidden_service_gogs" $ONION_SERVICES_FILE; then
658
+    if ! grep -q "hidden_service_gogs" "$ONION_SERVICES_FILE"; then
659
         { echo 'HiddenServiceDir /var/lib/tor/hidden_service_gogs/';
659
         { echo 'HiddenServiceDir /var/lib/tor/hidden_service_gogs/';
660
           echo 'HiddenServiceVersion 3';
660
           echo 'HiddenServiceVersion 3';
661
           echo "HiddenServicePort 80 127.0.0.1:${GIT_ONION_PORT}";
661
           echo "HiddenServicePort 80 127.0.0.1:${GIT_ONION_PORT}";
662
-          echo "HiddenServicePort 9418 127.0.0.1:9418"; } >> $ONION_SERVICES_FILE
662
+          echo "HiddenServicePort 9418 127.0.0.1:9418"; } >> "$ONION_SERVICES_FILE"
663
         echo $'Added onion site for Gogs'
663
         echo $'Added onion site for Gogs'
664
     fi
664
     fi
665
 
665