Changeset 3010 for lliurex-statistics


Ignore:
Timestamp:
Dec 9, 2016, 11:53:26 AM (3 years ago)
Author:
mabarracus
Message:

Fix confirmator logic & typo errors

Location:
lliurex-statistics/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/debian/changelog

    r3004 r3010  
     1lliurex-statistics (0.3-2) xenial; urgency=medium
     2
     3  * Fix confirmator logic & typo errors
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Fri, 09 Dec 2016 11:52:33 +0100
     6
    17lliurex-statistics (0.3-1) xenial; urgency=medium
    28
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/bin/confirmator

    r2995 r3010  
    3737CAT="$(${WHICH} cat)"
    3838DEBCONF_COMM="$(${WHICH} debconf-communicate)"
    39 # NOT NEEDED
    40 #LLIUREX_VERSION=$(${WHICH} lliurex-version)
     39LLIUREX_VERSION=$(${WHICH} lliurex-version)
    4140
    42 if [ -z "${N4DCLI}" -o -z "${FINDMNT}" -o -z "${CAT}" -o -z "${DEBCONF_COMM}" ]; then
     41if [ -z "${N4DCLI}" -o -z "${FINDMNT}" -o -z "${CAT}" -o -z "${DEBCONF_COMM}" -o -z "${LLIUREX_VERSION}" ]; then
    4342    exit 0
    4443fi
     
    7675fi
    7776
    78 RUN_AS_CLIENT=$(${LLIUREX_VERSION} |${GREP} -i client)
    79 RUN_AS_SERVER=$(${LLIUREX_VERSION} |${GREP} -i server)
     77RUN_AS_CLIENT=$(${LLIUREX_VERSION} |${GREP} -i -o client)
     78RUN_AS_SERVER=$(${LLIUREX_VERSION} |${GREP} -i -o server)
    8079RUN_AS_DESKTOP=""
    81 if [ -z ${RUN_AS_CLIENT} -a -z ${RUN_AS_SERVER} ];then
     80if [ -z "${RUN_AS_CLIENT}" -a -z "${RUN_AS_SERVER}" ];then
    8281    RUN_AS_DESKTOP="yes"
    8382else
    8483    #NOT USED INSIDE CONFIRMATOR, THIS LOGIC IS INTO COLLECTOR AND WILL BE ACCEPTED NOT NEED WRITE THE LOCAL FILE
    85     SERVER_OVERRRIDE="$(${N4DCLI} -h server -c VariablesManager -m get_variable -a 'STATS_ENABLED'|${GREP} '1')"
     84    SERVER_OVERRIDE="$(${N4DCLI} -h server -c VariablesManager -m get_variable -a 'STATS_ENABLED'|${GREP} '1')"
    8685    if [ -n "${SERVER_OVERRIDE}" ]; then
    8786        exit 0
Note: See TracChangeset for help on using the changeset viewer.