mirror of
https://github.com/nextcloud/docker.git
synced 2024-12-24 18:16:13 +01:00
Runs update.sh
This commit is contained in:
parent
83bd162c7a
commit
f0ca2b56e8
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if (getenv('SMTP_HOST')) {
|
||||
if (getenv('SMTP_HOST') && getenv('MAIL_FROM_ADDRESS') && getenv('MAIL_DOMAIN')) {
|
||||
$CONFIG = array (
|
||||
'mail_smtpmode' => 'smtp',
|
||||
'mail_smtphost' => getenv('SMTP_HOST'),
|
||||
|
@ -9,11 +9,7 @@ if (getenv('SMTP_HOST')) {
|
|||
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',
|
||||
'mail_smtpname' => getenv('SMTP_NAME') ?: '',
|
||||
'mail_smtppassword' => getenv('SMTP_PASSWORD') ?: '',
|
||||
'mail_from_address' => getenv('MAIL_FROM_ADDRESS'),
|
||||
'mail_domain' => getenv('MAIL_DOMAIN'),
|
||||
);
|
||||
if (getenv('MAIL_FROM_ADDRESS')) {
|
||||
$CONFIG['mail_from_address'] = getenv('MAIL_FROM_ADDRESS');
|
||||
}
|
||||
if (getenv('MAIL_DOMAIN')) {
|
||||
$CONFIG['mail_domain'] = getenv('MAIL_DOMAIN');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue