mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
Background Renew Subscriptions
This commit is contained in:
parent
33d08181c9
commit
99299b2ee5
@ -247,13 +247,24 @@ do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
###############################
|
||||||
|
# SUBSCRIPTION RENWES
|
||||||
|
###############################
|
||||||
|
|
||||||
|
# check every 10min
|
||||||
|
recheckSubscription=$((($counter % 600)+1))
|
||||||
|
if [ ${recheckSubscription} -eq 1 ]; then
|
||||||
|
# IP2TOR subscriptions (that will need renew in next 20min = 1200 secs)
|
||||||
|
/home/admin/config.scripts/blitz.subscriptions.ip2tor.py subscriptions-renew 1200
|
||||||
|
fi
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# RAID data check (BRTFS)
|
# RAID data check (BRTFS)
|
||||||
###############################
|
###############################
|
||||||
# see https://github.com/rootzoll/raspiblitz/issues/360#issuecomment-467698260
|
# see https://github.com/rootzoll/raspiblitz/issues/360#issuecomment-467698260
|
||||||
|
|
||||||
# check every hour
|
# check every hour
|
||||||
recheckRAID=$((($counter % 360)+1))
|
recheckRAID=$((($counter % 3600)+1))
|
||||||
if [ ${recheckRAID} -eq 1 ]; then
|
if [ ${recheckRAID} -eq 1 ]; then
|
||||||
|
|
||||||
# check if raid is active
|
# check if raid is active
|
||||||
|
@ -188,8 +188,6 @@ your RaspiBlitz behind TOR.
|
|||||||
if sub['active'] and sub['name'] == LND_GRPC_API: lnd_grpc_api=True
|
if sub['active'] and sub['name'] == LND_GRPC_API: lnd_grpc_api=True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
time.sleep(4)
|
|
||||||
pass
|
|
||||||
|
|
||||||
# ask user for which RaspiBlitz service the bridge should be used
|
# ask user for which RaspiBlitz service the bridge should be used
|
||||||
choices = []
|
choices = []
|
||||||
|
Loading…
Reference in New Issue
Block a user