From: Ian Kelling Date: Mon, 1 May 2023 02:29:33 +0000 (-0400) Subject: add some automation X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=279890b457806c91686cf04e3426b8c951c244eb;p=distro-setup add some automation --- 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 .