From 85a6d48ed7841e0c074801e351e1588a9d3bb0a6 Mon Sep 17 00:00:00 2001 From: dede Date: Fri, 21 Jul 2023 20:47:48 +0200 Subject: [PATCH] move todo to issues list --- TODO.md | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 TODO.md diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 7991c2f..0000000 --- a/TODO.md +++ /dev/null @@ -1,32 +0,0 @@ -# TODO - -## easy cert revocation - -here comes an example for watching file changes -the idea is to extend the step-ca container to be able to revoke certificates easily. -not that i think this is needed 0:-) - -source: https://stackoverflow.com/questions/22884580/bash-a-way-to-watch-files-for-changes#22885210 - -```bash -#!/bin/bash - -watched_files=$@ # pass watched files as cmd line arguments - -if [ -z "$watched_files" ]; then - echo "Nothing to watch, abort" - exit -else - echo "watching: $watched_files" -fi - -previous_checksum="dummy" -while [ 1 ]; do - checksum=$(md5sum $watched_files | md5sum) - if [ "$checksum" != "$previous_checksum" ]; then - echo "None shall pass!" # do your stuff here - fi - previous_checksum="$checksum" - sleep 1 -done -```