Skip to content

Commit 0a0ca4f

Browse files
author
Marius Cramer
committed
Fixed warning message on openSuse due to apache2 module check
1 parent 922807a commit 0a0ca4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/lib/install.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ function getapachemodules() {
865865
return array();
866866
}
867867

868-
exec($cmd, $output, $return_var);
868+
exec($cmd . ' 2>/dev/null', $output, $return_var);
869869
if($return_var != 0 || !$output[0]) {
870870
$app->log("Could not check apache modules, apachectl did not return any data.", LOGLEVEL_WARN);
871871
return array();

server/lib/classes/system.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ function getapachemodules() {
17701770
return array();
17711771
}
17721772

1773-
exec($cmd, $output, $return_var);
1773+
exec($cmd . ' 2>/dev/null', $output, $return_var);
17741774
if($return_var != 0 || !$output[0]) {
17751775
$app->log("Could not check apache modules, apachectl did not return any data.", LOGLEVEL_WARN);
17761776
return array();

0 commit comments

Comments
 (0)