1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

Merge branch 'master' into testing

This commit is contained in:
yalh76 2023-01-17 01:18:43 +01:00
commit 4d9f0be821
2 changed files with 6 additions and 5 deletions

View file

@ -1,7 +1,9 @@
config :mobilizon, Mobilizon.Web.Email.Mailer, config :mobilizon, Mobilizon.Web.Email.Mailer,
adapter: Swoosh.Adapters.SMTP, #adapter: Swoosh.Adapters.SMTP,
relay: "127.0.0.1", #relay: "127.0.0.1",
adapter: Bamboo.SMTPAdapter,
server: "127.0.0.1",
#hostname: "127.0.0.1", #hostname: "127.0.0.1",
# usually 25, 465 or 587 # usually 25, 465 or 587
port: 25, port: 25,
@ -15,4 +17,3 @@ config :mobilizon, Mobilizon.Web.Email.Mailer,
no_mx_lookups: false, no_mx_lookups: false,
# can be `:always`. If your smtp relay requires authentication set it to `:always`. # can be `:always`. If your smtp relay requires authentication set it to `:always`.
auth: :always auth: :always

View file

@ -248,8 +248,8 @@ ynh_script_progression --message="Updating a configuration file..."
config="/etc/$app/config.exs" config="/etc/$app/config.exs"
ynh_backup_if_checksum_is_different --file="$config" ynh_backup_if_checksum_is_different --file="$config"
ynh_replace_string --match_string="adapter: Bamboo.SMTPAdapter," --replace_string="adapter: Swoosh.Adapters.SMTP," --target_file="$config" ynh_replace_string --match_string="adapter: Swoosh.Adapters.SMTP," --replace_string="adapter: Bamboo.SMTPAdapter," --target_file="$config"
ynh_replace_string --match_string="server: \"127.0.0.1\"," --replace_string="relay: \"127.0.0.1\"," --target_file="$config" ynh_replace_string --match_string="relay: \"127.0.0.1\"," --replace_string="server: \"127.0.0.1\"," --target_file="$config"
ynh_store_file_checksum --file="$config" ynh_store_file_checksum --file="$config"
chmod 400 "$config" chmod 400 "$config"