install.sh + frontend: use external URL dsbmueller.spdns.org:8443, configurable via RMM_BACKEND env
This commit is contained in:
+6
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user