mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
Merge pull request #15 from frennkie/patch-1
remove spaces so they don't end up in config file
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user