Explorer
/proc/234/root/tmp/update-hermes-komfort-tile.sh
← Zurück ↓ Download
#!/usr/bin/env bash
set -euo pipefail
f=/opt/struktur/dashboard/app-carlo.py
sed -i "s/'id': 'hermes-agent-carlo', 'name': 'Hermes Komfort'/'id': 'hermes-komfort', 'name': 'Hermes Komfort'/" "$f"
sed -i "s#https://hermes-carlo.agentsolutions-mallorca.com/komfort/#https://hermes-komfort.agentsolutions-mallorca.com/#" "$f"
python3 -m py_compile "$f"
systemctl restart carlo-dashboard.service
systemctl is-active carlo-dashboard.service
grep -n 'Hermes Komfort\|Hermes Agent' "$f"