fi
if [[ $HOSTNAME == $MAIL_HOST ]]; then
local_mx=mail.iankelling.org
- rsync_common="rsync -ogt --chown=root:Debian-exim --chmod=640 root@li:/p/c/machine_specific/li/webservercerts/$local_mx-"
- ${rsync_common}chained.pem /etc/exim4/exim.crt
- ${rsync_common}domain.key /etc/exim4/exim.key
+ rsync_common="rsync -ogtL --chown=root:Debian-exim --chmod=640 root@li:/etc/letsencrypt/live/$local_mx/"
+ ${rsync_common}fullchain.pem /etc/exim4/exim.crt
+ ${rsync_common}privkey.pem /etc/exim4/exim.key
fi
EOF
chmod 755 $f
[Service]
Type=oneshot
-ExecStart=/usr/local/bin/sysd-mail-once mailcert /usr/local/bin/mail-cert-cron
+ExecStart=/a/bin/log-quiet/sysd-mail-once mailcert /usr/local/bin/mail-cert-cron
EOF
cat >/etc/systemd/system/mailcert.timer <<'EOF'
sdir=/var/spool/$type
# we only do this if our system has $dir
if [[ -e $dir && $(readlink -f $sdir) != $dir ]]; then
- systectl stop $type
+ systemctl stop $type
if [[ ! -e $dir && -d $sdir ]]; then
mv $sdir $dir
fi