Skip to content

Commit 5af8e51

Browse files
committed
Do not install php-opcache on PHP >= 8.5
1 parent 60448a6 commit 5af8e51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

overlay/tmp/install

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ def main [] {
1313
let packages = [
1414
$"($prefix)=($version)"
1515
$"($prefix)-fpm=($version)"
16-
$"($prefix)-opcache=($version)"
1716
$"($prefix)-session=($version)"
1817
]
1918
bf pkg install $packages
2019

20+
# opcache is part of PHP >= 8.5
21+
if not ($version | bf version is_at_least "8.5.0") {
22+
bf pkg install [$"($prefix)-opcache=($version)"]
23+
}
24+
2125
# create symlinks so PHP can be called on the commandline using php and php-fpm
2226
let php = "/usr/bin/php"
2327
let fpm = "/usr/sbin/php-fpm"

0 commit comments

Comments
 (0)