mirror of
https://github.com/unraid/api.git
synced 2026-05-14 11:59:11 -05:00
fix(plg): git flash logging suppression #2
This commit is contained in:
@@ -1291,7 +1291,7 @@ $keyfile = @base64_encode($keyfile);
|
||||
|
||||
// check if activated
|
||||
if ($command != 'activate') {
|
||||
exec_log('git -C /boot config --get remote.origin.url', $config_output, $return_var);
|
||||
exec('git -C /boot config --get remote.origin.url 2>&1', $config_output, $return_var);
|
||||
if (($return_var != 0) || (strpos($config_output[0],'backup.unraid.net') === false)) {
|
||||
$arrState['activated'] = false;
|
||||
response_complete(406, '{"error":"Not activated"}');
|
||||
|
||||
Reference in New Issue
Block a user