From 3164e4b52160f88470c2955ac32e3e793d915abf Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Fri, 8 Jul 2011 20:58:18 -0400 Subject: [PATCH] sendmail is in /usr/sbin/ on RHEL. Summary: If we're going to hardcode a path, at least let's do it in a way that works on RHEL too. Test Plan: Successfully ran the setup script on RHEL. Reviewers: epriestley CC: Differential Revision: 623 --- src/infrastructure/setup/PhabricatorSetup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/setup/PhabricatorSetup.php b/src/infrastructure/setup/PhabricatorSetup.php index e6ea79149b..7a5ad737f3 100644 --- a/src/infrastructure/setup/PhabricatorSetup.php +++ b/src/infrastructure/setup/PhabricatorSetup.php @@ -348,7 +348,8 @@ class PhabricatorSetup { $have_adapter = true; - if (!Filesystem::pathExists('/usr/bin/sendmail')) { + if (!Filesystem::pathExists('/usr/bin/sendmail') && + !Filesystem::pathExists('/usr/sbin/sendmail')) { self::writeFailure(); self::write( "Setup failure! You don't have a 'sendmail' binary on this system ".