This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BZ 1148186] Use eval to execute the RHQ agent start command. It was …
…incorrectly sourced in the current script. Note that only config and full config were affected. Also, adjusted the order for defining and export RHQ home to allow proper overrides int RHQ environment script.
- Loading branch information
Stefan Negrea
committed
Oct 1, 2014
1 parent
10795bd
commit d583b23
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d583b23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you didn't change this logic but why do we "assume" we are running directly from the agent installation's bin directory? In other words, why:
RHQ_AGENT_HOME=`dirname $PWD`
instead of:
RHQ_AGENT_HOME=`dirname "$_DOLLARZERO"`
d583b23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$PWD isn't always defined either. It is best to use
pwd
. Also, in its current state it will break long file names.It also seems that we are doing the wrong thing here. First, we are ignoring the user's defined RHQ_AGENT_HOME. Second, we are assuming RHQ_AGENT_HOME is the current work directory. This is most likely not the case. Why did this change?