small improvements
authorIan Kelling <ian@iankelling.org>
Mon, 15 Aug 2016 03:06:25 +0000 (20:06 -0700)
committerIan Kelling <ian@iankelling.org>
Mon, 15 Aug 2016 03:06:25 +0000 (20:06 -0700)
README
machine_specific/treetowl/filesystem/etc/cron.d/treetowl
machine_specific/treetowl/filesystem/etc/cron.daily/check-lets-encrypt-ssl-settings [new file with mode: 0755]
subdir_files/.mpv/config [moved from .mpv/config with 100% similarity]

diff --git a/README b/README
index e842202bedce03a422d0e2a11a8f88cd2989614d..0f1938543d3d91eb1617f937ddef688bee99e004 100644 (file)
--- 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
index fabb24cd026483577c1834370243302912852508..2b8b1a1b4108b3cb0f1ab3b8c4899c30eb8ba487 100755 (executable)
@@ -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 (executable)
index 0000000..b5b874a
--- /dev/null
@@ -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 <<EOF
+Let's encrypt has new ssl settings. Update your web servers, then
+edit the date in $0, and
+rm $lock_file
+The change is:
+$out
+EOF
+    touch $lock_file
+fi
similarity index 100%
rename from .mpv/config
rename to subdir_files/.mpv/config