From dc7f29fec79f559ea840022b682567b9fcb2be17 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Fri, 18 Aug 2017 16:54:59 +0100 Subject: better window --- tools/boca-submit-logroot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/boca-submit-logroot b/tools/boca-submit-logroot index 4b5d54e..901da3c 100644 --- a/tools/boca-submit-logroot +++ b/tools/boca-submit-logroot @@ -15,7 +15,7 @@ if [ "$BOCASERVER" == "" ]; then exit 1 fi -for zcount in 1 2 3 4; do +for zcount in 1 2 3 4 5 6; do grep "session opened for user root" /var/log/auth.log |grep -v cron:session | grep -v systemd:session | tail -n 100 > /root/.logroot.tmp [ -f /root/.logroot ] || touch /root/.logroot @@ -60,7 +60,7 @@ if [ "$res" != "0" ]; then fi fi mv /root/.logroot.tmp /root/.logroot -[ "$zcount" == "4" ] || sleep 15 +[ "$zcount" == "6" ] || sleep 8 done exit 0 -- cgit v1.2.3