0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-12-25 18:46:14 +01:00

Runs update.sh

This commit is contained in:
GitHub Workflow 2021-04-27 15:02:03 +00:00
parent 83bd162c7a
commit f0ca2b56e8

View file

@ -1,5 +1,5 @@
<?php <?php
if (getenv('SMTP_HOST')) { if (getenv('SMTP_HOST') && getenv('MAIL_FROM_ADDRESS') && getenv('MAIL_DOMAIN')) {
$CONFIG = array ( $CONFIG = array (
'mail_smtpmode' => 'smtp', 'mail_smtpmode' => 'smtp',
'mail_smtphost' => getenv('SMTP_HOST'), 'mail_smtphost' => getenv('SMTP_HOST'),
@ -9,11 +9,7 @@ if (getenv('SMTP_HOST')) {
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',
'mail_smtpname' => getenv('SMTP_NAME') ?: '', 'mail_smtpname' => getenv('SMTP_NAME') ?: '',
'mail_smtppassword' => getenv('SMTP_PASSWORD') ?: '', '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');
}
} }