Skip to content

Commit

Permalink
jopr agent name includes now appliance name, -support upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmann committed Sep 9, 2009
1 parent 5b961dc commit 9624ee9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/jboss-appliance-support
Submodule jboss-appliance-support updated from 81c0fc to 0d2ce6
5 changes: 2 additions & 3 deletions src/agent-configuration.xml
Expand Up @@ -95,9 +95,8 @@ commands named "config", "setconfig" and "setup" and the command line options
this if the agent platform's FQDN cannot be reliably determined
at runtime.
-->
<!--
<entry key="rhq.agent.name" value="my.hostname.com"/>
-->

<entry key="rhq.agent.name" value="#AGENT_NAME#"/>

<!--
_______________________________________________________________
Expand Down
4 changes: 4 additions & 0 deletions src/jopr-agent-install.sh
@@ -1,5 +1,7 @@
#!/bin/sh

[ -f /etc/sysconfig/jboss-cloud ] && . /etc/sysconfig/jboss-cloud

JOPR_AGENT_HOME=/opt/jopr-agent

[ -f /etc/sysconfig/jopr-agent ] && . /etc/sysconfig/jopr-agent
Expand Down Expand Up @@ -29,3 +31,5 @@ done
cd $JOPR_AGENT_HOME

java -jar jopr-agent.jar --install

sed -i s/#AGENT_NAME#/$APPLIANCE_NAME-$HOSTNAME/g $JOPR_AGENT_HOME/rhq-agent/conf/agent-configuration.xml

0 comments on commit 9624ee9

Please sign in to comment.