Changeset 1699


Ignore:
Timestamp:
May 26, 2016, 1:51:47 PM (3 years ago)
Author:
mabarracus
Message:

Fix logic confirmator

Location:
lliurex-zero-installers/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-zero-installers/trunk/fuentes/debian/changelog

    r1590 r1699  
    1 lliurex-zero-installers (0.125-1) xenial; urgency=medium
     1lliurex-zero-installers (0.125-2) xenial; urgency=medium
    22
    33  * Fix confirmator logic
    44
    5  -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 12 May 2016 22:19:35 +0200
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 13 May 2016 22:19:35 +0200
    66
    77lliurex-zero-installers (0.125) xenial; urgency=medium
  • lliurex-zero-installers/trunk/fuentes/lliurex-zero-installer-analytics.install/usr/bin/confirmator

    r1589 r1699  
    11#!/bin/bash
    22
    3 DETECT1=$(n4d-client -c ZCenterVariables -m get_state -a lliurex-zero-installer-analytics)
    4 DETECT2=$(dpkg -l|grep auditd|wc -l)
    5 DETECT3=$(dpkg -l|grep python-daemon|wc -l)
     3set -e
     4
     5WHICH=$(which which)
     6if [ -z ${WHICH} ]; then
     7    exit 0
     8fi     
     9N4DCLI=$(${WHICH} n4d-client)
     10DPKG=$(${WHICH} dpkg)
     11GREP=$(${WHICH} grep)
     12WC=$(${WHICH} wc)
     13
     14if [ -z ${N4DCLI} -o -z ${DPKG} -o -z ${GREP} -o -z ${WC} ]; then
     15    exit 0
     16fi
     17
     18DETECT1=$(${N4DCLI} -c ZCenterVariables -m get_state -a lliurex-zero-installer-analytics)
     19DETECT2=$(${DPKG} -l|${GREP} auditd|${WC} -l)
     20DETECT3=$(${DPKG} -l|${GREP} python-daemon|${WC} -l)
    621
    722if [ ${DETECT1} -eq 0 -o ${DETECT2} -eq 0 -o ${DETECT3} -eq 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.