Skip to content

Commit

Permalink
update via shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrsnhs committed Feb 28, 2025
1 parent 97eafcd commit 888eb9f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions runs/update_secondary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import sys
sys.path.append("/var/www/html/openWB/packages")
try:
from helpermodules import pub
except Exception as e:
# Durch try-except werden die Imports vom Formatierer nicht an den Dateianfang geschoben.
print(e)

secondary_ip = sys.argv[1]
print("IP der Secondary: "+secondary_ip)

pub.pub_single("openWB/set/command/primary/todo",
{"command": "systemUpdate", "data": {}},
hostname=secondary_ip)

print("Update Befehl an Secondary gesendet.")

0 comments on commit 888eb9f

Please sign in to comment.