mirror of
https://github.com/unraid/api.git
synced 2026-05-01 20:54:27 -05:00
fix: unraid-api in usr/bin
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ class ServerState
|
||||
if (file_exists('/var/lib/pkgtools/packages/dynamix.unraid.net.staging')) {
|
||||
$this->connectPluginInstalled = 'dynamix.unraid.net.staging.plg';
|
||||
}
|
||||
if ($this->connectPluginInstalled && !file_exists('/usr/local/bin/unraid-api')) {
|
||||
if ($this->connectPluginInstalled && !file_exists('/usr/bin/unraid-api')) {
|
||||
$this->connectPluginInstalled .= '_installFailed';
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ if ($cli) {
|
||||
}
|
||||
if (!in_array($command, $validCommands)) $command = 'none';
|
||||
|
||||
if (!file_exists('/usr/local/sbin/unraid-api') || !file_exists('/usr/local/bin/unraid-api/unraid-api')) {
|
||||
if (!file_exists('/usr/bin/unraid-api')) {
|
||||
response_complete(406, array('error' => 'Please reinstall the Unraid Connect plugin'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user