X-Git-Url: https://git.distorted.org.uk/~mdw/mirror-admin/blobdiff_plain/b8bf5b4099828ec24fe3cda6964f5a28d92d01ea..623f436b82fb4ae97d0856d736206cf035d805f9:/bin/run-mirrors diff --git a/bin/run-mirrors b/bin/run-mirrors index 34a3733..cddea70 100755 --- a/bin/run-mirrors +++ b/bin/run-mirrors @@ -56,5 +56,15 @@ for file in $(run-parts --list etc/mirrors.d); do set +e; (trap - INT; exec "$file"); rc=$?; set -e echo echo "*** Finished $(date +%Y-%m-%dT%H:%M:%S); rc = $rc" + if [ -d etc/post-$base.d ]; then + for i in $(run-parts --list etc/post-$base.d); do + s=${i##*/} + echo + echo "*** Running post-script $s at $(date +%Y-%m-%dT%H:%M:%S)" + set +e; (trap - INT; exec "$i"); rc=$?; set -e + echo + echo "*** Finished post-script $s $(date +%Y-%m-%dT%H:%M:%S); rc = $rc" + done + fi ) >>log/$base.log 2>&1 done