mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
specter update to 1.0.0, tor-only by default (#1921)
This commit is contained in:
parent
8ab8e9b7f7
commit
13c960c3bd
1 changed files with 36 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# https://github.com/cryptoadvance/specter-desktop
|
# https://github.com/cryptoadvance/specter-desktop
|
||||||
|
|
||||||
pinnedVersion="0.10.4"
|
pinnedVersion="1.0.0"
|
||||||
|
|
||||||
# command info
|
# command info
|
||||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||||
|
@ -110,6 +110,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
/home/admin/config.scripts/network.wallet.sh on
|
/home/admin/config.scripts/network.wallet.sh on
|
||||||
|
|
||||||
echo "# --> Installing prerequisites"
|
echo "# --> Installing prerequisites"
|
||||||
|
sudo apt update
|
||||||
sudo apt install -y libusb-1.0.0-dev libudev-dev virtualenv libffi-dev
|
sudo apt install -y libusb-1.0.0-dev libudev-dev virtualenv libffi-dev
|
||||||
|
|
||||||
sudo adduser --disabled-password --gecos "" specter
|
sudo adduser --disabled-password --gecos "" specter
|
||||||
|
@ -126,18 +127,42 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
|
||||||
# activating Authentication here ...
|
# activating Authentication here ...
|
||||||
echo "# --> creating App-config"
|
echo "# --> creating App-config"
|
||||||
|
if [ "${runBehindTor}" = "on" ];then
|
||||||
|
proxy="socks5h://localhost:9050"
|
||||||
|
torOnly="true"
|
||||||
|
else
|
||||||
|
proxy=""
|
||||||
|
torOnly="false"
|
||||||
|
fi
|
||||||
cat > /home/admin/config.json <<EOF
|
cat > /home/admin/config.json <<EOF
|
||||||
{
|
{
|
||||||
"rpc": {
|
"rpc": {
|
||||||
"autodetect": true,
|
"autodetect": true,
|
||||||
"datadir": "/home/bitcoin/.bitcoin",
|
"datadir": "/home/bitcoin/.bitcoin",
|
||||||
"user": "",
|
"user": "",
|
||||||
"password": "",
|
"password": "",
|
||||||
"port": "",
|
"port": "",
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
"protocol": "http"
|
"protocol": "http"
|
||||||
},
|
},
|
||||||
"auth":"rpcpasswordaspin"
|
"auth": "rpcpasswordaspin",
|
||||||
|
"explorers": {
|
||||||
|
"main": "",
|
||||||
|
"test": "",
|
||||||
|
"regtest": "",
|
||||||
|
"signet": ""
|
||||||
|
},
|
||||||
|
"proxy_url": "$proxy",
|
||||||
|
"only_tor": $torOnly,
|
||||||
|
"tor_control_port": "",
|
||||||
|
"hwi_bridge_url": "/hwi/api/",
|
||||||
|
"uid": "",
|
||||||
|
"unit": "btc",
|
||||||
|
"price_check": false,
|
||||||
|
"alt_rate": 1,
|
||||||
|
"alt_symbol": "BTC",
|
||||||
|
"price_provider": "",
|
||||||
|
"validate_merkle_proofs": false
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
sudo mv /home/admin/config.json /home/specter/.specter/config.json
|
sudo mv /home/admin/config.json /home/specter/.specter/config.json
|
||||||
|
|
Loading…
Add table
Reference in a new issue