From: Ian Kelling Date: Mon, 15 Aug 2016 03:06:25 +0000 (-0700) Subject: small improvements X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=c1979b833e441369c17aba26cbc1fa7af9b30002 small improvements --- diff --git a/README b/README index e842202..0f19385 100644 --- a/README +++ b/README @@ -1,4 +1,5 @@ -Misc config files that don't have their own repos. There is probably -some poorly documented, and some outdated, but also some stuff someone -could find useful. Some other config stuff has their own repos at +Misc configs that I use + +Some stuff someone could find useful, some is a bit outdated. My bashrc +and emacs config are kept in good state and have their own repos at https://iankelling.org/git diff --git a/machine_specific/treetowl/filesystem/etc/cron.d/treetowl b/machine_specific/treetowl/filesystem/etc/cron.d/treetowl index fabb24c..2b8b1a1 100755 --- a/machine_specific/treetowl/filesystem/etc/cron.d/treetowl +++ b/machine_specific/treetowl/filesystem/etc/cron.d/treetowl @@ -7,4 +7,4 @@ */5 * * * * . /a/bin/dynamic-ip-update.sh MAILTO="" */10 * * * * /a/bin/small-backup 10minutes 3D -*/10 * * * * /home/ian/.ssh/* /root/.ssh +*/10 * * * * /a/exe/rootsshsync diff --git a/machine_specific/treetowl/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings b/machine_specific/treetowl/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings new file mode 100755 index 0000000..b5b874a --- /dev/null +++ b/machine_specific/treetowl/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings @@ -0,0 +1,40 @@ +#!/bin/bash -l +# 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. + +set -eE -o pipefail +trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR + +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 &>/tmp/${0##*/}.log +cd $d + +f=certbot-apache/certbot_apache/options-ssl-apache.conf +out=$(git log -p --since 2014-08-14 $f) + +if [[ $out ]]; then + cat <