mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-25 14:08:19 +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() {
|
protected function executeChecks() {
|
||||||
|
if (PhabricatorEnv::getEnvConfig('cluster.mailers')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$adapter = PhabricatorEnv::getEnvConfig('metamta.mail-adapter');
|
$adapter = PhabricatorEnv::getEnvConfig('metamta.mail-adapter');
|
||||||
|
|
||||||
switch ($adapter) {
|
switch ($adapter) {
|
||||||
|
|
|
@ -63,8 +63,8 @@ final class PhabricatorClusterMailersConfigType
|
||||||
}
|
}
|
||||||
$map[$key] = true;
|
$map[$key] = true;
|
||||||
|
|
||||||
$priority = idx($spec, 'priority', 0);
|
$priority = idx($spec, 'priority');
|
||||||
if ($priority <= 0) {
|
if ($priority !== null && $priority <= 0) {
|
||||||
throw $this->newException(
|
throw $this->newException(
|
||||||
pht(
|
pht(
|
||||||
'Mailer configuration ("%s") is invalid: priority must be '.
|
'Mailer configuration ("%s") is invalid: priority must be '.
|
||||||
|
|
Loading…
Add table
Reference in a new issue