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.
This commit is contained in:
Ken Moore
2018-09-06 08:50:25 -04:00
parent 4b0d6334d1
commit 32d74530ad

View File

@@ -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");
}