mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Omit nil SMTP settings
Allows leaving `smtp_settings[:domain]` unspecified. Explicitly setting it to `nil` (as when `OSEM_SMTP_DOMAIN` is unset) overrides the default value of `'localhost.localdomain'` and caused SMTP connections to fail with `EOFError`.
This commit is contained in:
parent
32164c47db
commit
266fdbabea
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ namespace :data do
|
|||
dot_env.puts "OSEM_SMTP_USERNAME=\"#{CONFIG['mail_username']}\""
|
||||
dot_env.puts "OSEM_SMTP_PASSWORD=\"#{CONFIG['mail_password']}\""
|
||||
dot_env.puts "OSEM_SMTP_AUTHENTICATION=\"#{CONFIG['mail_authentication']}\""
|
||||
dot_env.puts 'OSEM_SMTP_DOMAIN=""'
|
||||
dot_env.puts '# OSEM_SMTP_DOMAIN="example.com"'
|
||||
dot_env.close
|
||||
|
||||
puts "Migrated config/config.yml to .env.#{Rails.env}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue