Background Renew Subscriptions

This commit is contained in:
rootzoll 2020-05-27 00:15:02 +02:00
parent 33d08181c9
commit 99299b2ee5
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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 = []