Catching stderr too now

This commit is contained in:
Jeroen De Meerleer 2017-05-17 11:50:17 +02:00
parent c9e8b5fcd4
commit 3c9ead5da7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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')) {