mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
Merge branch 'dev' of https://github.com/rootzoll/raspiblitz into dev
This commit is contained in:
@@ -72,7 +72,7 @@ if [ ${bitcoinRunning} -eq 1 ]; then
|
|||||||
# Get data from blockchain network
|
# Get data from blockchain network
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
source <(sudo -u bitcoin /home/admin/config.scripts/network.monitor.sh peer-status)
|
source <(sudo /home/admin/config.scripts/network.monitor.sh peer-status)
|
||||||
echo "blockchainPeers=${peers}"
|
echo "blockchainPeers=${peers}"
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
@@ -226,6 +226,8 @@ EOF
|
|||||||
# DO NOT EDIT! This file is generated by raspiblitz and will be overwritten
|
# DO NOT EDIT! This file is generated by raspiblitz and will be overwritten
|
||||||
[Service]
|
[Service]
|
||||||
ReadWriteDirectories=-/mnt/hdd/tor
|
ReadWriteDirectories=-/mnt/hdd/tor
|
||||||
|
# see https://github.com/rootzoll/raspiblitz/issues/2531
|
||||||
|
AppArmorProfile=
|
||||||
[Unit]
|
[Unit]
|
||||||
After=network.target nss-lookup.target mnt-hdd.mount
|
After=network.target nss-lookup.target mnt-hdd.mount
|
||||||
EOF
|
EOF
|
||||||
|
@@ -22,7 +22,7 @@ if [ "$1" = "peer-status" ]; then
|
|||||||
|
|
||||||
# if second parameter is "cached" deliver cached result if available
|
# if second parameter is "cached" deliver cached result if available
|
||||||
if [ "$2" == "cached" ]; then
|
if [ "$2" == "cached" ]; then
|
||||||
cacheExists=$(ls /var/cache/raspiblitz/network.monitor.peer-status.cache 2>/dev/null | grep -c "etwork.monitor.peer-status.cache")
|
cacheExists=$(ls /var/cache/raspiblitz/network.monitor.peer-status.cache 2>/dev/null | grep -c "network.monitor.peer-status.cache")
|
||||||
if [ "${cacheExists}" == "1" ]; then
|
if [ "${cacheExists}" == "1" ]; then
|
||||||
echo "cached=1"
|
echo "cached=1"
|
||||||
cat /var/cache/raspiblitz/network.monitor.peer-status.cache
|
cat /var/cache/raspiblitz/network.monitor.peer-status.cache
|
||||||
|
Reference in New Issue
Block a user