Catching stderr too now
This commit is contained in:
parent
c9e8b5fcd4
commit
3c9ead5da7
|
@ -53,7 +53,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) {
|
|||
if($jobnameResult[0]["url"] != "reboot") {
|
||||
$body = '';
|
||||
$statuscode = 0;
|
||||
exec($jobnameResult[0]["url"], $body, $statuscode);
|
||||
exec($jobnameResult[0]["url"] . " 2>&1", $body, $statuscode);
|
||||
$body = implode("\n", $body);
|
||||
$timestamp = time();
|
||||
} else {
|
||||
|
|
|
@ -81,7 +81,7 @@ foreach ($results as $result) {
|
|||
if($result["url"] != "reboot") {
|
||||
$body = '';
|
||||
$statuscode = 0;
|
||||
exec($result["url"], $body, $statuscode);
|
||||
exec($result["url"] . " 2>&1", $body, $statuscode);
|
||||
$body = implode("\n", $body);
|
||||
} else {
|
||||
if (!file_exists('cache/get-services.trigger')) {
|
||||
|
|
Loading…
Reference in New Issue