Skip to content

Commit 6405214

Browse files
ixsathienem
authored andcommitted
Handle different scl/legacy php naming for opcache.
When running on CentOS or RHEL the opcache package under php 5.4 us named php-pecl-zendopcache. When using a newer PHP version like 5.6, 7.0 or 7.1 the package is named slightly different though: php-opcache. Take this into account.
1 parent 530f4b9 commit 6405214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/ng/map.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@
27382738
'net-smtp': 'php-pear-Net-SMTP',
27392739
'net4': 'php-pear-Net-IPv4',
27402740
'oauth': 'php-pecl-oauth',
2741-
'opcache': 'php-pecl-zendopcache',
2741+
'opcache': rh_prefix + 'php-opcache' if salt['pillar.get']('php:use_scl_repo', False) else 'php-pecl-zendopcache',
27422742
'pear': rh_prefix + 'php-pear',
27432743
'pgsql': rh_prefix + 'php-pgsql',
27442744
'php': rh_prefix + 'php',

0 commit comments

Comments
 (0)