Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.")