Redirect out to /dev/null to avoid errors shown

This commit is contained in:
Tobias Herre 2023-11-01 22:11:05 +01:00
parent a1c32bca4b
commit 9d120728de
1 changed files with 1 additions and 1 deletions

2
php.cf
View File

@ -133,7 +133,7 @@ bundle agent php_install_centos_repos
{
classes:
centos::
"switch_repo" expression => not(returnszero("cat /etc/dnf/modules.d/php.module | grep -q '^stream.*=.*remi-$(php.version)'","useshell"));
"switch_repo" expression => not(returnszero("cat /etc/dnf/modules.d/php.module | grep -q '^stream.*=.*remi-$(php.version)' >/dev/null 2>&1","useshell"));
"install_remi" expression => not(returnszero("rpm -q remi-release > /dev/null","useshell"));
"install_epel" expression => not(returnszero("rpm -q epel-release > /dev/null","useshell"));