Skip to content

Commit

Permalink
Merge pull request #1341 from peter279k/fix_#1337_macos_fpm
Browse files Browse the repository at this point in the history
Resolve #1337 to check OS when enabling FPM option
  • Loading branch information
c9s committed Apr 25, 2023
2 parents 264b16c + 1050186 commit c22340c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PhpBrew/Command/InstallCommand.php
Expand Up @@ -439,8 +439,12 @@ public function execute($version)
);
}
if ($build->isEnabledVariant('fpm')) {
$addedOptions = array('--enable-fpm');
if (PHP_OS === 'Linux') {
$addedOptions[] = '--with-fpm-systemd';
}
$sapis['fpm'] = array(
'enable' => array('--enable-fpm', '--with-fpm-systemd'),
'enable' => $addedOptions,
'disable' => array(),
);
}
Expand Down

0 comments on commit c22340c

Please sign in to comment.