diff options
| author | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-29 15:44:07 +0000 |
|---|---|---|
| committer | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-29 15:44:07 +0000 |
| commit | 850c4ca26c9b4e2057f25b628ecce85f4c7e947c (patch) | |
| tree | 08db022d790975c1c5ce46e1be521092071bd449 /tools | |
| parent | a8cb2e6a24aa58e3861386c87a14506d1d0037c1 (diff) | |
| parent | d7885379f2726c05073d31dff751a4bb21a9d69a (diff) | |
| download | boca-850c4ca26c9b4e2057f25b628ecce85f4c7e947c.tar.gz boca-850c4ca26c9b4e2057f25b628ecce85f4c7e947c.zip | |
Merge remote-tracking branch 'origin/develc' into devel
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/boca-fixes | 7 | ||||
| -rw-r--r-- | tools/boca-submit-log | 6 |
2 files changed, 10 insertions, 3 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..a96810b 100644 --- a/tools/boca-submit-log +++ b/tools/boca-submit-log @@ -41,8 +41,10 @@ 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 - reskeys=$? + 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=1 else echo -n "" > /root/.logkeys.diff reskeys=0 |