From 279890b457806c91686cf04e3426b8c951c244eb Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 30 Apr 2023 22:29:33 -0400 Subject: [PATCH] add some automation --- distro-end | 8 ++++++++ machine_specific/bk/filesystem/etc/cron.daily/stream-cert | 5 +++++ 2 files changed, 13 insertions(+) create mode 100755 machine_specific/bk/filesystem/etc/cron.daily/stream-cert diff --git a/distro-end b/distro-end index bcfe627..a9ab55a 100755 --- a/distro-end +++ b/distro-end @@ -883,6 +883,14 @@ EOF end ;; esac + +case $HOSTNAME in + bk) + /etc/cron.daily/stream-cert + web-conf -c /etc/cert-live.fsf.org -p 443 -f 8000 apache2 live.fsf.org + ;; + esac + ###### end website setup ########### end section including li/lj ############### diff --git a/machine_specific/bk/filesystem/etc/cron.daily/stream-cert b/machine_specific/bk/filesystem/etc/cron.daily/stream-cert new file mode 100755 index 0000000..32b9018 --- /dev/null +++ b/machine_specific/bk/filesystem/etc/cron.daily/stream-cert @@ -0,0 +1,5 @@ +#!/bin/bash +cert_dir=/etc/cert-live.fsf.org +mkdir -p $cert_dir +cd $cert_dir +rsync -e 'ssh -o StrictHostKeyChecking=accept-new' -tL --perms streamserver0p.fsf.org:/etc/letsencrypt/live/streamserver0p.fsf.org/{fullchain,privkey}.pem . -- 2.30.2