install.sh + frontend: use external URL dsbmueller.spdns.org:8443, configurable via RMM_BACKEND env

This commit is contained in:
cynfo3000
2026-03-03 23:17:58 +01:00
parent 5f37e28046
commit eb52507c08
12 changed files with 593 additions and 108 deletions
+6 -4
View File
@@ -114,12 +114,14 @@ func (h *Handler) handleUpdateCheck(msg Message) Message {
result := map[string]interface{}{}
// 1. OPNsense Core Update pruefen
// opnsense-update -c gibt Exit 1 wenn Updates da sind, aber auch bei anderen Fehlern.
// Nur wenn stdout tatsaechlich Update-Infos enthaelt, ist ein Update verfuegbar.
coreOutput, coreErr := h.runCommand("/usr/local/sbin/opnsense-update -c", 60)
if coreErr != nil {
// Exit 1 = Update verfuegbar ODER Reboot noetig
info := strings.TrimSpace(coreOutput)
coreInfo := strings.TrimSpace(coreOutput)
if coreErr != nil && coreInfo != "" {
// Exit 1 MIT Output = echtes Update verfuegbar
result["core_update_available"] = true
result["core_update_info"] = info
result["core_update_info"] = coreInfo
} else {
result["core_update_available"] = false
result["core_update_info"] = "Kein Core-Update verfuegbar"