This commit is contained in:
openoms 2021-11-30 14:26:35 +00:00
commit 8d92382911
3 changed files with 4 additions and 2 deletions

View file

@ -72,7 +72,7 @@ if [ ${bitcoinRunning} -eq 1 ]; then
# 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}"
##############################

View file

@ -226,6 +226,8 @@ EOF
# DO NOT EDIT! This file is generated by raspiblitz and will be overwritten
[Service]
ReadWriteDirectories=-/mnt/hdd/tor
# see https://github.com/rootzoll/raspiblitz/issues/2531
AppArmorProfile=
[Unit]
After=network.target nss-lookup.target mnt-hdd.mount
EOF

View file

@ -22,7 +22,7 @@ if [ "$1" = "peer-status" ]; then
# if second parameter is "cached" deliver cached result if available
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
echo "cached=1"
cat /var/cache/raspiblitz/network.monitor.peer-status.cache