Merge pull request #15 from frennkie/patch-1

remove spaces so they don't end up in config file
This commit is contained in:
bluecell296
2019-09-27 09:35:34 +01:00
committed by GitHub

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"