fork 0k-charms
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

  1. #!/bin/bash
  2. host=$(relation-get host) || exit 1
  3. port=$(relation-get port) || exit 1
  4. secure=$(relation-get secure) || exit 1
  5. user=$(relation-get user) || exit 1
  6. password=$(relation-get password) || exit 1
  7. config-add "\
  8. services:
  9. $MASTER_BASE_SERVICE_NAME:
  10. environment:
  11. SMTP_HOST: \"$host\"
  12. SMTP_PORT: \"$port\"
  13. SMTP_SECURE: \"${secure,,}\"
  14. SMTP_USER: \"${user//\$/\$\$}\"
  15. SMTP_PWD: \"${password//\$/\$\$}\"
  16. "