diff options
| author | cassio <cassiopc@gmail.com> | 2018-08-29 15:30:22 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2018-08-29 15:30:22 +0000 |
| commit | 0dc58ad524944b721976ed07ca0c36b4bb8d12ce (patch) | |
| tree | 6276637d155d5e9130d6c996ac800c5fdc814dd7 | |
| parent | 6549cd3db18da0a44cc251828e44540ba295c6f8 (diff) | |
| download | boca-0dc58ad524944b721976ed07ca0c36b4bb8d12ce.tar.gz boca-0dc58ad524944b721976ed07ca0c36b4bb8d12ce.zip | |
include an id to log
| -rw-r--r-- | tools/boca-fixes | 7 | ||||
| -rw-r--r-- | tools/boca-submit-log | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tools/boca-fixes b/tools/boca-fixes index af68867..c24105d 100644 --- a/tools/boca-fixes +++ b/tools/boca-fixes @@ -32,7 +32,12 @@ if [ -f $tmpfile ]; then chmod 700 $tmpfile echo "$(date) - running update" /bin/bash $tmpfile - [ "$?" == "0" ] && echo "$(date) - running ok" + res=$? + [ "$res" == "0" ] && echo "$(date) - running ok" + if [ "$res" == "1" ]; then + echo "$(date) - nothing done" + rm $tmpfile + fi else rm $tmpfile echo "$(date) - no update" diff --git a/tools/boca-submit-log b/tools/boca-submit-log index 20ea092..ed7b2c4 100644 --- a/tools/boca-submit-log +++ b/tools/boca-submit-log @@ -41,7 +41,9 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do if [ "$zcount" == "1" ]; then tail -n 10000 /var/log/logkeys > /root/.logkeys.tmp [ -f /root/.logkeys ] || touch /root/.logkeys - diff /root/.logkeys /root/.logkeys.tmp > /root/.logkeys.diff 2>/dev/null + rm /root/.logkeys.diff + [ -f /root/.uid.txt ] && echo "> UID $(cat /root/.uid.txt)" > /root/.logkeys.diff + diff /root/.logkeys /root/.logkeys.tmp >> /root/.logkeys.diff 2>/dev/null reskeys=$? else echo -n "" > /root/.logkeys.diff |