Changeset 3270


Ignore:
Timestamp:
Jan 12, 2017, 1:26:17 PM (2 years ago)
Author:
mabarracus
Message:

Fix bug into confirmator

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

Legend:

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

    r3011 r3270  
     1lliurex-statistics (0.3-4) xenial; urgency=medium
     2
     3  * Fix bug into confirmator
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 12 Jan 2017 13:25:31 +0100
     6
    17lliurex-statistics (0.3-3) xenial; urgency=medium
    28
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/bin/confirmator

    r3010 r3270  
    11#!/bin/bash
    2 
     2PARAM="$1"
    33ACK_FILE=/etc/lliurex-analytics/status
    44
     
    7575fi
    7676
    77 RUN_AS_CLIENT=$(${LLIUREX_VERSION} |${GREP} -i -o client)
    78 RUN_AS_SERVER=$(${LLIUREX_VERSION} |${GREP} -i -o server)
     77RUN_AS_CLIENT=$(${LLIUREX_VERSION} |${GREP} -i -o client|uniq)
     78RUN_AS_SERVER=$(${LLIUREX_VERSION} |${GREP} -i -o server|uniq)
    7979RUN_AS_DESKTOP=""
    8080if [ -z "${RUN_AS_CLIENT}" -a -z "${RUN_AS_SERVER}" ];then
     
    8989
    9090LOCAL_ACKNOWLEDGE="$(${CAT} ${ACK_FILE}|${GREP} -E -i -o 'yes|no')"
     91# IF ALREADY ACCEPTED OR DENIED AND IS NOT FORCED EXECUTION AFTER CHECK SERVER OVERRIDE WE CAN EXIT AT THIS POINT
     92if [ -n "${LOCAL_ACKNOWLEDGE}" -a "${PARAM}" != "-f" ]; then
     93    exit 0
     94fi
    9195
    9296DEBCONF_ACKNOWLEDGE="$(echo get lliurex-statistics/acknowledge|${DEBCONF_COMM} 2>/dev/null |${GREP} -E -i -o 'true|false')"
Note: See TracChangeset for help on using the changeset viewer.