diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-18 15:31:06 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-18 15:31:06 +0000 |
| commit | 3af30fdde793ebe24595900740636e26dc6de7c3 (patch) | |
| tree | 0e296f6db6d106ab20385a07c07aff0ea48c0a65 /tools/boca-submit-logroot | |
| parent | 9f5042d57a0656fa3d0d87e5457d3a8c8876023a (diff) | |
| download | boca-3af30fdde793ebe24595900740636e26dc6de7c3.tar.gz boca-3af30fdde793ebe24595900740636e26dc6de7c3.zip | |
double auth possible
Diffstat (limited to 'tools/boca-submit-logroot')
| -rw-r--r-- | tools/boca-submit-logroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/boca-submit-logroot b/tools/boca-submit-logroot index 1199288..0cf2ce5 100644 --- a/tools/boca-submit-logroot +++ b/tools/boca-submit-logroot @@ -19,7 +19,6 @@ grep "session opened for user root" /var/log/auth.log |grep -v cron:session | gr [ -f /root/.logroot ] || touch /root/.logroot diff /root/.logroot /root/.logroot.tmp > /root/.logroot.diff 2>/dev/null res=$? -mv /root/.logroot.tmp /root/.logroot if [ "$res" != "0" ]; then for i in uuencode wget tr perl sha256sum cut; do p=`which $i` @@ -58,4 +57,5 @@ if [ "$res" != "0" ]; then exit 2 fi fi +mv /root/.logroot.tmp /root/.logroot exit 0 |