ucentral-client: only start the service if the operational cert is present

Fixes: WIFI-14694
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-06-13 06:16:30 +02:00
parent c4a12b0ea3
commit d7e0a8ad6b

View File

@@ -14,6 +14,7 @@ reload_service() {
}
start_service() {
[ -f /etc/ucentral/operational.ca -a -f /etc/ucentral/operational.pem ] || return
[ -s /etc/ucentral/capabilities.json ] || rm /etc/ucentral/capabilities.json
[ -f /etc/ucentral/capabilities.json ] || /usr/share/ucentral/capabilities.uc