mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
Merge branch 'dev' of https://github.com/rootzoll/raspiblitz into dev
This commit is contained in:
commit
8d92382911
3 changed files with 4 additions and 2 deletions
|
@ -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}"
|
||||
|
||||
##############################
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue