From 465edf6a70cd56f32e85cdf15ca3098a282f1614 Mon Sep 17 00:00:00 2001 From: magdev Date: Sat, 29 Apr 2023 11:29:22 +0200 Subject: [PATCH] some envvar pingpong --- scripts/fetch-mails.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/fetch-mails.sh b/scripts/fetch-mails.sh index 89f6db3..5e98160 100644 --- a/scripts/fetch-mails.sh +++ b/scripts/fetch-mails.sh @@ -1,10 +1,10 @@ #!/bin/bash # Email-address of the system -mail_address="${REDMINE_IMAP_ADDRESS}" +mail_address="${REDMINE_IMAP_USER}" # Email-Account username and password -mail_username="$mail_address" +mail_username="${REDMINE_IMAP_USERNAME:-"$mail_address"}" mail_password="${REDMINE_IMAP_PASSWORD}" # IMAP-Server address and port