From ead9bbfeb174a4edc823f191aa4fb9e8ab8aa7e6 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 30 May 2011 18:54:40 -0700 Subject: [PATCH] Test for pcntl availability from the command line, not Apache Summary: In RHEL6 at the least, pcntl installs from distro package management to the CLI but not to Apache. Since we don't need it in apache and it's a pain to build manually, just verify it exists on the CLI. Test Plan: Simulated script failures and verified setup output. Reviewed By: codeblock Reviewers: codeblock, aran, jungejason, tuomaspelkonen CC: aran, epriestley, kevinwallace, codeblock Differential Revision: 380 --- scripts/setup/pcntl_available.php | 24 +++++++++++++++++ src/infrastructure/setup/PhabricatorSetup.php | 27 ++++++++++++++++--- 2 files changed, 48 insertions(+), 3 deletions(-) create mode 100755 scripts/setup/pcntl_available.php diff --git a/scripts/setup/pcntl_available.php b/scripts/setup/pcntl_available.php new file mode 100755 index 0000000000..4fe250ceac --- /dev/null +++ b/scripts/setup/pcntl_available.php @@ -0,0 +1,24 @@ +#!/usr/bin/env php +