diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-10-24 01:04:32 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-10-24 01:04:32 +0000 |
commit | 14084ef18084d2e84a5d9b9854a221b4cb0948b6 (patch) | |
tree | 83c9f38f3ce58927d16422758d1ed36875c092ea /logcheck/mklocalfiles | |
parent | 18a669e1479272d49f3ed574b6d587abfba306f7 (diff) |
logcheck: Add dirty hack script to generate catch-all "local" files. Add generated "local" files as well.
Diffstat (limited to 'logcheck/mklocalfiles')
-rwxr-xr-x | logcheck/mklocalfiles | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/logcheck/mklocalfiles b/logcheck/mklocalfiles new file mode 100755 index 0000000..06aa7fb --- /dev/null +++ b/logcheck/mklocalfiles @@ -0,0 +1,24 @@ +#!/bin/sh + +# Bad ass temp script to simply generate file "local" containing *all* +# other files in it (until a proper cfengine script is written + +for dir in ignore.d.server ignore.d.workstation violations.ignore.d; do + echo regenerating $dir + rm -f $dir/local + # Include server lines in workstation as well + if [ "$dir" == "violations.ignore.d" ]; then + for file in ignore.d.server/*; do + if [ -f $file -a `basename $file` != "local" ]; then + echo "### $file" >> $dir/local + cat $file >> $dir/local + fi + done + fi + for file in $dir/*; do + if [ -f $file -a `basename $file` != "local" ]; then + echo "### $file" >> $dir/local + cat $file >> $dir/local + fi + done +done |