From 32d74530adf1ed89fef630ffbb89be8274a0be26 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 6 Sep 2018 08:50:25 -0400 Subject: [PATCH] Disable the sysadm/update API class unless pc-updatemanager is installed. This system does not work with the newer "trueos-update" utility. We will need a new API backend for that tool. --- src/server/WebBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/WebBackend.cpp b/src/server/WebBackend.cpp index fd90c20..f5574c5 100644 --- a/src/server/WebBackend.cpp +++ b/src/server/WebBackend.cpp @@ -84,8 +84,8 @@ RestOutputStruct::ExitCode WebSocket::AvailableSubsystems(bool allaccess, QJsonO // - Generic system information out->insert("sysadm/systemmanager","read/write"); - // - PC-BSD/TrueOS Updater - if(QFile::exists("/usr/local/bin/pc-updatemanager") || QFile::exists("/usr/sbin/trueos-update")){ + // - Legacy PC-BSD/TrueOS Updater + if( QFile::exists("/usr/local/bin/pc-updatemanager") ){ out->insert("sysadm/update", "read/write"); }