Silenced when detecting rpms

This commit is contained in:
Tobias Herre 2023-11-03 08:53:54 +01:00
parent 0e07daa5f1
commit 204c84a896
1 changed files with 4 additions and 2 deletions

6
php.cf
View File

@ -89,7 +89,9 @@ vars:
"php$(xversion)-intl",
"php$(xversion)-pecl-imagick-im6",
"php$(xversion)-ldap",
"php-pecl-json-post"
"php-pecl-json-post",
"php-pecl-apcu",
"php-pecl-zip",
};
@ -133,7 +135,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)' >/dev/null 2>&1","useshell"));
"switch_repo" expression => not(returnszero("cat /etc/dnf/modules.d/php.module 2>/dev/null | grep -q '^stream.*=.*remi-$(php.version)'","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"));