#!/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//\$/\$\$}\" "