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
7c1eba1b4a
1 changed files with 6 additions and 2 deletions
|
@ -311,8 +311,12 @@ def main():
|
|||
|
||||
# check if Sphinx-Relay is installed
|
||||
sphinx_relay = False
|
||||
status_data = subprocess.run(['/home/admin/config.scripts/bonus.sphinxrelay.sh', 'status'],
|
||||
stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
|
||||
try:
|
||||
status_data = subprocess.run(['/home/admin/config.scripts/bonus.sphinxrelay.sh', 'status'],
|
||||
stdout=subprocess.PIPE, timeout=10).stdout.decode('utf-8').strip()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
if status_data.find("installed=1") > -1:
|
||||
sphinx_relay = True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue