Bob Mottram 6 anni fa
parent
commit
b6a7f9e370
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/freedombone-app-gogs

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

@@ -655,11 +655,11 @@ function install_gogs {
655 655
         echo $'No Tor installation found. Gogs onion site cannot be configured.'
656 656
         exit 877367
657 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 659
         { echo 'HiddenServiceDir /var/lib/tor/hidden_service_gogs/';
660 660
           echo 'HiddenServiceVersion 3';
661 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 663
         echo $'Added onion site for Gogs'
664 664
     fi
665 665