mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
#2373 auth only when bitcoin wallet on
This commit is contained in:
parent
ed711c0397
commit
09859dcfbc
1 changed files with 7 additions and 1 deletions
|
@ -89,12 +89,18 @@ if [ "$1" = "status" ]; then
|
||||||
toraddress=$(sudo cat /mnt/hdd/tor/btc-rpc-explorer/hostname 2>/dev/null)
|
toraddress=$(sudo cat /mnt/hdd/tor/btc-rpc-explorer/hostname 2>/dev/null)
|
||||||
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
||||||
|
|
||||||
|
authMethod="user_admin_password_b"
|
||||||
|
isBitcoinWalletOff=$(cat /mnt/hdd/bitcoin/bitcoin.conf | grep -c "^disablewallet=1")
|
||||||
|
if [ "${isBitcoinWalletOff}" == "1" ]; then
|
||||||
|
authMethod="none"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "localIP='${localip}'"
|
echo "localIP='${localip}'"
|
||||||
echo "httpPort='3020'"
|
echo "httpPort='3020'"
|
||||||
echo "httpsPort='3021'"
|
echo "httpsPort='3021'"
|
||||||
echo "httpsForced='0'"
|
echo "httpsForced='0'"
|
||||||
echo "httpsSelfsigned='1'"
|
echo "httpsSelfsigned='1'"
|
||||||
echo "authMethod='user_admin_password_b'"
|
echo "authMethod='${authMethod}'"
|
||||||
echo "toraddress='${toraddress}'"
|
echo "toraddress='${toraddress}'"
|
||||||
echo "fingerprint='${fingerprint}'"
|
echo "fingerprint='${fingerprint}'"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue