move todo to issues list

This commit is contained in:
2023-07-21 20:47:48 +02:00
parent 8751c3e907
commit 85a6d48ed7

32
TODO.md
View File

@@ -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
```