Skip to content

Commit

Permalink
Merge pull request #880 from amousset/bug_7881/rudder_agent_tries_sen…
Browse files Browse the repository at this point in the history
…ding_an_inventory_during_update

Fixes #7881: Rudder agent tries sending an inventory during update
  • Loading branch information
jooooooon committed Feb 8, 2016
2 parents 3a1c6c1 + c9fde67 commit cf1f90c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rudder-agent/SPECS/rudder-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ fi
# Try to send an inventory after upgrade to see the new agent version on the server
if [ ${CFRUDDER_FIRST_INSTALL} -ne 1 ]
then
echo "INFO: Trigger an inventory..."
/var/rudder/cfengine-community/bin/cf-agent -KD force_inventory >> %{rudderlogdir}/install/rudder-agent.log 2>&1 || true
echo "INFO: Scheduling an inventory during next run..."
touch /opt/rudder/etc/force_inventory
fi

# launch rudder agent check script, it will generate an UUID on first install or repair it if needed
Expand Down
4 changes: 2 additions & 2 deletions rudder-agent/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ case "$1" in
# Try to send an inventory after upgrade to see the new agent version on the server
if [ ${CFRUDDER_FIRST_INSTALL} -ne 1 ]
then
echo "INFO: Trigger an inventory..."
/var/rudder/cfengine-community/bin/cf-agent -KD force_inventory >> /var/log/rudder/install/rudder-agent.log 2>&1 || true
echo "INFO: Scheduling an inventory during next run..."
touch /opt/rudder/etc/force_inventory
fi

# launch rudder agent check script, it will generate an UUID on first install or repair it if needed
Expand Down

0 comments on commit cf1f90c

Please sign in to comment.