remove spaces so they don't end up in config file

Or was this intentional? None of the other lines are prefixed with tabs/spaces in my `torrc`.
This commit is contained in:
frennkie
2019-09-26 21:24:27 +02:00
committed by GitHub
parent a09f5b5a53
commit d7de69e440

View File

@@ -344,11 +344,11 @@ if [ "${runBehindTor}" = "on" ]; then
isElectrsTor=$(sudo cat /etc/tor/torrc 2>/dev/null | grep -c 'btcpay') isElectrsTor=$(sudo cat /etc/tor/torrc 2>/dev/null | grep -c 'btcpay')
if [ ${isElectrsTor} -eq 0 ]; then if [ ${isElectrsTor} -eq 0 ]; then
echo " echo "
# Hidden Service for BTCPayServer # Hidden Service for BTCPayServer
HiddenServiceDir /mnt/hdd/tor/btcpay HiddenServiceDir /mnt/hdd/tor/btcpay
HiddenServiceVersion 3 HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:23000 HiddenServicePort 80 127.0.0.1:23000
" | sudo tee -a /etc/tor/torrc " | sudo tee -a /etc/tor/torrc
sudo systemctl restart tor sudo systemctl restart tor
sudo systemctl restart tor@default sudo systemctl restart tor@default