mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Don't run older mail setup checks if "cluster.mailers" is configured
Summary: Ref T12677. Skip these checks if we're doing the new stuff. Also, allow priority to be unspecified. Test Plan: Will deploy. Maniphest Tasks: T12677 Differential Revision: https://secure.phabricator.com/D19043
This commit is contained in:
parent
7d4362690f
commit
09b446b269
2 changed files with 6 additions and 2 deletions
|
@ -7,6 +7,10 @@ final class PhabricatorMailSetupCheck extends PhabricatorSetupCheck {
|
|||
}
|
||||
|
||||
protected function executeChecks() {
|
||||
if (PhabricatorEnv::getEnvConfig('cluster.mailers')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$adapter = PhabricatorEnv::getEnvConfig('metamta.mail-adapter');
|
||||
|
||||
switch ($adapter) {
|
||||
|
|
|
@ -63,8 +63,8 @@ final class PhabricatorClusterMailersConfigType
|
|||
}
|
||||
$map[$key] = true;
|
||||
|
||||
$priority = idx($spec, 'priority', 0);
|
||||
if ($priority <= 0) {
|
||||
$priority = idx($spec, 'priority');
|
||||
if ($priority !== null && $priority <= 0) {
|
||||
throw $this->newException(
|
||||
pht(
|
||||
'Mailer configuration ("%s") is invalid: priority must be '.
|
||||
|
|
Loading…
Reference in a new issue