X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fcron.daily%2Fcheck-lets-encrypt-ssl-settings;fp=filesystem%2Fetc%2Fcron.daily%2Fcheck-lets-encrypt-ssl-settings;h=0000000000000000000000000000000000000000;hb=da085f71e5ae00a9f78ed903be6ae675f66eacfa;hp=c108521828531af863eeff83bd5c8a6d3a81edb6;hpb=2a1cee2e73d9291dde9af831bbe9e996199b7cbc;p=distro-setup diff --git a/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings b/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings deleted file mode 100755 index c108521..0000000 --- a/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright (C) 2016 Ian Kelling - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -source ~/.bashrc - -set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR - -if [[ ! -e /dev/shm/iank-status ]]; then - exit 0 -fi -eval $(< /dev/shm/iank-status) - -if [[ $HOSTNAME != "$MAIL_HOST" || $HOST2 && $HOST2 != "$HOSTNAME" ]]; then - exit 0 -fi - -lock_file=/tmp/check-lets-encrypt-ssl-settings -if [[ -e $lock_file ]]; then - exit 0 -fi - -d=/a/opt/certbot -gitget https://github.com/certbot/certbot.git $d |& ts "%F %T" >>/tmp/${0##*/}.log -cd $d - -f=certbot-apache/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf -out=$(git log -p --since 2020-04-06 $f) - -if [[ $out ]]; then - cat <