quotes
This commit is contained in:
parent
704a14b488
commit
b6a7f9e370
|
@ -655,11 +655,11 @@ function install_gogs {
|
||||||
echo $'No Tor installation found. Gogs onion site cannot be configured.'
|
echo $'No Tor installation found. Gogs onion site cannot be configured.'
|
||||||
exit 877367
|
exit 877367
|
||||||
fi
|
fi
|
||||||
if ! grep -q "hidden_service_gogs" $ONION_SERVICES_FILE; then
|
if ! grep -q "hidden_service_gogs" "$ONION_SERVICES_FILE"; then
|
||||||
{ echo 'HiddenServiceDir /var/lib/tor/hidden_service_gogs/';
|
{ echo 'HiddenServiceDir /var/lib/tor/hidden_service_gogs/';
|
||||||
echo 'HiddenServiceVersion 3';
|
echo 'HiddenServiceVersion 3';
|
||||||
echo "HiddenServicePort 80 127.0.0.1:${GIT_ONION_PORT}";
|
echo "HiddenServicePort 80 127.0.0.1:${GIT_ONION_PORT}";
|
||||||
echo "HiddenServicePort 9418 127.0.0.1:9418"; } >> $ONION_SERVICES_FILE
|
echo "HiddenServicePort 9418 127.0.0.1:9418"; } >> "$ONION_SERVICES_FILE"
|
||||||
echo $'Added onion site for Gogs'
|
echo $'Added onion site for Gogs'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue