From c3f3f1513e65613180a1a45273b921d06e2b4327 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Oct 2010 17:31:28 +0200 Subject: FusionInventory-Agent-2.1.6 - not working yet, because of http://forge.fusioninventory.org/issues/414 --- fusioninventory-agent.init | 10 +++++++++- fusioninventory-agent.spec | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fusioninventory-agent.init b/fusioninventory-agent.init index aacadab..65fd96d 100755 --- a/fusioninventory-agent.init +++ b/fusioninventory-agent.init @@ -27,6 +27,7 @@ do_start() # Read configuration i=0 OPTS= + SERVERS= while [ $i -lt ${#OCSMODE[*]} ] do if [ ${OCSMODE[$i]:-none} == daemon ]; then @@ -38,11 +39,18 @@ do_start() OPTS="$OPTS --local=/var/lib/$prog" elif [ ! -z "${OCSSERVER[$i]}" ]; then # Remote inventory - OPTS="$OPTS --server=${OCSSERVER[$i]}" + if [ -z "$SERVERS" ]; then + SERVERS=${OCSSERVER[$i]} + else + SERVERS="$SERVERS,${OCSSERVER[$i]}" + fi fi fi ((i++)) done + if [ -n "$SERVERS" ]; then + OPTS="$OPTS --server=$SERVERS" + fi if [ -n "$OPTS" ]; then echo -n $"Starting $prog: " daemon $prog --logfile=$logfile $FUSINVOPT --daemon $OPTS 2>/dev/null diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index 5a2e99a..1ca5870 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -4,7 +4,7 @@ Name: fusioninventory-agent Summary: FusionInventory agent Summary(fr): Agent FusionInventory -Version: 2.1.5 +Version: 2.1.6 %if 0%{?gitver:1} Release: 2.git%{gitver}%{?dist} @@ -229,6 +229,11 @@ exit 0 %changelog +* Wed Oct 06 2010 Remi Collet 2.1.6-1 +- update to 2.1.6 + http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-2.1.6/Changes +- fix init script for multi-server in daemon mode + * Wed Sep 15 2010 Remi Collet 2.1.5-1 - update to 2.1.5 http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-2.1.5/Changes -- cgit