Fix host agent socket activation
CI / php-store (push) Waiting to run
CI / python-components (push) Waiting to run

This commit is contained in:
2026-08-24 23:13:10 +02:00
parent acadcdfeee
commit eb6be0e5fa
5 changed files with 12 additions and 5 deletions
+6 -1
View File
@@ -512,10 +512,15 @@ info "Datenbank und statische Dateien aktualisieren"
info "Dienste aktivieren und neu starten"
systemctl daemon-reload
systemctl enable netbox-store-agent.socket
systemctl stop netbox-store-agent.service
systemctl restart netbox-store-agent.socket
systemctl restart netbox-store-agent.service
systemctl restart netbox netbox-rq
if [[ ! -S /run/netbox-store-agent/agent.sock ]]; then
systemctl status netbox-store-agent.socket --no-pager -l || true
die "Der Agent-Socket /run/netbox-store-agent/agent.sock wurde nicht erstellt."
fi
info "Socket-Zugriff als NetBox-Dienstkonto prüfen"
runuser -u "$NETBOX_USER" -- \
/opt/netbox-store-agent/venv/bin/netbox-store-agent capabilities