mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Changing the method of validating sendmail exists on the system.
Summary: Removes calling `which` and instead checks the file path that PHPMailerLite uses directly (/usr/bin/sendmail). This fixes $PATH export issues which occur on certain platforms causing un-expected errors during setup. Test Plan: * Run setup on server without sendmail install & error should be presented. * Install sendmail then re-run setup & no error should be presented. Reviewers: epriestley Differential Revision: 375
This commit is contained in:
parent
fff08a9894
commit
e7d2e96c23
1 changed files with 1 additions and 2 deletions
|
@ -253,8 +253,7 @@ class PhabricatorSetup {
|
|||
|
||||
$have_adapter = true;
|
||||
|
||||
list($err) = exec_manual('which sendmail');
|
||||
if ($err) {
|
||||
if (!Filesystem::pathExists('/usr/bin/sendmail')) {
|
||||
self::writeFailure();
|
||||
self::write(
|
||||
"Setup failure! You don't have a 'sendmail' binary on this system ".
|
||||
|
|
Loading…
Reference in a new issue