Update 'build/start-container.sh'
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful

This commit is contained in:
2023-03-18 00:14:34 +01:00
parent 0e47e74ac5
commit 2f61a64ef0

View File

@@ -20,16 +20,18 @@ if [ -n "${SMTP_PASSWORD_FILE}" ]; then
SMTP_PASSWORD=$(cat ${SMTP_PASSWORD_FILE});
fi
IFS=
if [ -n "${EMAIL_FILE}" ]; then
EMAIL=$(cat ${EMAIL_FILE});
else
if [ -n "${EMAIL}" ]; then
EMAIL="To: ${TO_ADDRESS}\nSubject: ${SUBJECT}\n\n${MESSAGE}";
if [ -z "${EMAIL}" ]; then
EMAIL="To: ${TO_ADDRESSES}\nSubject: ${SUBJECT}\n\n${MESSAGE}";
fi
fi
if [ -n "${MSMTP_CONFIG_FILE}" ]; then
MSMTP_CONFIG_FILE="~/.msmtprc"
if [ -z "${MSMTP_CONFIG_FILE}" ]; then
MSMTP_CONFIG_FILE=~/.msmtprc
touch ${MSMTP_CONFIG_FILE}
chmod 600 ${MSMTP_CONFIG_FILE}
echo "defaults