Skip to content

Commit d743c37

Browse files
author
Till Brehm
committed
Merge branch '6316-hide-stderr-from-which-1-on-centos' into 'develop'
Resolve "hide stderr from which(1) on centos" Closes #6316 See merge request ispconfig/ispconfig3!1635
2 parents 81e3c76 + 07cb5dd commit d743c37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function install_acme() {
5252
}
5353

5454
public function update_acme() {
55-
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh'));
55+
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh 2> /dev/null'));
5656
$acme = reset($acme);
5757
$val = 0;
5858

server/lib/classes/letsencrypt.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(){
4444
}
4545

4646
public function get_acme_script() {
47-
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh'));
47+
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh 2> /dev/null'));
4848
$acme = reset($acme);
4949
if(is_executable($acme)) {
5050
return $acme;

0 commit comments

Comments
 (0)