mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 12:54:19 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user