From 3be8f2c71b92deda774732a29152b67bf0350d92 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 29 Mar 2021 15:03:01 +0200 Subject: [PATCH] fedocal: Don't let stg send reminder emails Signed-off-by: Pierre-Yves Chibon --- roles/openshift-apps/fedocal/templates/fedocal.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/openshift-apps/fedocal/templates/fedocal.cfg b/roles/openshift-apps/fedocal/templates/fedocal.cfg index 5fa2910eb9..33905b1b8c 100644 --- a/roles/openshift-apps/fedocal/templates/fedocal.cfg +++ b/roles/openshift-apps/fedocal/templates/fedocal.cfg @@ -22,7 +22,11 @@ ADMIN_GROUP='sysadmin-calendar' ### The address of the SMTP server used to send the reminders emails ### via the cron job. ### Default: 'localhost' +{% if env == 'staging' %} +SMTP_SERVER='localhost' +{% else %} SMTP_SERVER='bastion.fedoraproject.org' +{% endif %} ### The cron job can be set with any frequency but fedocal_cron needs ### this information to accurately retrieve the meetings to remind and