mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-20 13:28:07 +02:00
Tor: reload only with -sighup , spelling fixes
This commit is contained in:
parent
a62d000677
commit
ab7c9e4a95
4 changed files with 11 additions and 11 deletions
|
|
@ -335,7 +335,7 @@ then
|
|||
'https://deb.torproject.org/torproject.org')
|
||||
echo "torSourceListAvailable=${torSourceListAvailable}"
|
||||
if [ ${torSourceListAvailable} -eq 0 ]; then
|
||||
echo "Adding TOR sources ..."
|
||||
echo "Adding Tor sources ..."
|
||||
if [ "${baseImage}" = "raspbian" ]||[ "${baseImage}" = "buster" ]||[ "${baseImage}" = "dietpi" ]; then
|
||||
echo "deb https://deb.torproject.org/torproject.org buster main" | tee -a /etc/apt/sources.list
|
||||
echo "deb-src https://deb.torproject.org/torproject.org buster main" | tee -a /etc/apt/sources.list
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ function updateTor() {
|
|||
'tor-nightly-master')
|
||||
echo "torSourceListAvailable=${torSourceListAvailable}"
|
||||
if [ ${torSourceListAvailable} -eq 0 ]; then
|
||||
echo "Adding TOR sources ..."
|
||||
echo "Adding Tor sources ..."
|
||||
if [ "${baseImage}" = "raspbian" ]||[ "${baseImage}" = "buster" ]||[ "${baseImage}" = "dietpi" ]; then
|
||||
distro="buster"
|
||||
elif [ "${baseImage}" = "bionic" ]; then
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ if [ "$1" == "off" ]; then
|
|||
sudo chmod 644 /etc/tor/torrc
|
||||
sudo chown bitcoin:bitcoin /etc/tor/torrc
|
||||
|
||||
echo "# OK service is removed - restarting TOR ..."
|
||||
sudo systemctl restart tor
|
||||
sleep 10
|
||||
echo "# OK service is removed - reloading Tor ..."
|
||||
sudo pkill -sighup tor
|
||||
sleep 5
|
||||
echo "# Done"
|
||||
exit 0
|
||||
fi
|
||||
|
|
@ -107,10 +107,10 @@ HiddenServicePort $toPort 127.0.0.1:$fromPort" | sudo tee -a /etc/tor/torrc
|
|||
fi
|
||||
|
||||
# restart tor
|
||||
echo ""
|
||||
echo "Restarting Tor to activate the Hidden Service..."
|
||||
echo
|
||||
echo "Reloading Tor to activate the Hidden Service..."
|
||||
sudo chmod 644 /etc/tor/torrc
|
||||
sudo systemctl restart tor
|
||||
sudo pkill -sighup tor
|
||||
sleep 10
|
||||
|
||||
# show the Hidden Service address
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ if [ "$1" = "status" ]; then
|
|||
# no answer on that port
|
||||
echo "publicHTTPPortAnswering=0"
|
||||
fi
|
||||
# add TOR info
|
||||
# add Tor info
|
||||
if [ "${runBehindTor}" == "on" ]; then
|
||||
echo "TORrunning=1"
|
||||
if [ "$2" = "showAddress" ]; then
|
||||
|
|
@ -150,7 +150,7 @@ This can take multiple hours.
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Options (available without TOR)
|
||||
# Options (available without Tor)
|
||||
OPTIONS=(
|
||||
CONNECT "How to Connect"
|
||||
INDEX "Delete&Rebuild Index"
|
||||
|
|
@ -178,7 +178,7 @@ This can take multiple hours.
|
|||
echo "The Tor Hidden Service address for electrs is (see LCD for QR code):"
|
||||
echo "${TORaddress}"
|
||||
echo
|
||||
echo "To connect through TOR open the Tor Browser and start with the options:"
|
||||
echo "To connect through Tor open the Tor Browser and start with the options:"
|
||||
echo "electrum --oneserver --server ${TORaddress}:50002:s --proxy socks5:127.0.0.1:9150"
|
||||
/home/admin/config.scripts/blitz.lcd.sh qr "${TORaddress}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue