From: Ian Kelling Date: Mon, 29 Jul 2019 17:03:39 +0000 (-0400) Subject: fix wrongly escaped test cronjob X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=202b0a155c831a43d5128b04497db850c21c8ad2 fix wrongly escaped test cronjob --- 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 <