From 202b0a155c831a43d5128b04497db850c21c8ad2 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 29 Jul 2019 13:03:39 -0400 Subject: [PATCH] fix wrongly escaped test cronjob --- mail-setup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mail-setup b/mail-setup index b79fd84..645510a 100755 --- a/mail-setup +++ b/mail-setup @@ -877,10 +877,17 @@ systemctl enable exim4 if [[ $HOSTNAME == "$MAIL_HOST" ]]; then + f=/usr/local/bin/send-test-forward + cat >$f <<'EOF' +#!/bin/bash +echo body_test | mail -s "primary_test $(date +%s) $(date +%Y-%m-%dT%H:%M:%S%z)" iank@posteo.de +EOF + chmod +x $f + cat >/etc/cron.d/mailtest <