You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
448 B
20 lines
448 B
#!/bin/bash
|
|
|
|
host=$(relation-get host) || exit 1
|
|
port=$(relation-get port) || exit 1
|
|
secure=$(relation-get secure) || exit 1
|
|
user=$(relation-get user) || exit 1
|
|
password=$(relation-get password) || exit 1
|
|
|
|
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
SMTP_HOST: \"$host\"
|
|
SMTP_PORT: \"$port\"
|
|
SMTP_SECURE: \"${secure,,}\"
|
|
SMTP_USER: \"${user//\$/\$\$}\"
|
|
SMTP_PWD: \"${password//\$/\$\$}\"
|
|
"
|
|
|