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')
if [ ${isElectrsTor} -eq 0 ]; then
echo "
# Hidden Service for BTCPayServer
HiddenServiceDir /mnt/hdd/tor/btcpay
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:23000
" | sudo tee -a /etc/tor/torrc
# Hidden Service for BTCPayServer
HiddenServiceDir /mnt/hdd/tor/btcpay
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:23000
" | sudo tee -a /etc/tor/torrc
sudo systemctl restart tor
sudo systemctl restart tor@default
@@ -363,4 +363,4 @@ if [ "${runBehindTor}" = "on" ]; then
fi
echo ""
echo "Visit your BTCpayServer instance on https://$YOUR_DOMAIN"
echo "Visit your BTCpayServer instance on https://$YOUR_DOMAIN"