mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user