Repository: ambari Updated Branches: refs/heads/branch-2.5 3c4596d7d -> 9cd94a795
AMBARI-21379. Ambari Agent doesn't start as non-root user with "ambari-agent start" logged in as root (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9cd94a79 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9cd94a79 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9cd94a79 Branch: refs/heads/branch-2.5 Commit: 9cd94a795ad8d5f22135940222f6cdecb9e2b3b3 Parents: 3c4596d Author: Andrew Onishuk <[email protected]> Authored: Wed Jul 5 14:24:11 2017 +0300 Committer: Andrew Onishuk <[email protected]> Committed: Wed Jul 5 14:24:11 2017 +0300 ---------------------------------------------------------------------- ambari-agent/etc/init.d/ambari-agent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/9cd94a79/ambari-agent/etc/init.d/ambari-agent ---------------------------------------------------------------------- diff --git a/ambari-agent/etc/init.d/ambari-agent b/ambari-agent/etc/init.d/ambari-agent index b70de85..dbaf147 100644 --- a/ambari-agent/etc/init.d/ambari-agent +++ b/ambari-agent/etc/init.d/ambari-agent @@ -36,6 +36,6 @@ else command_prefx="bash -c" fi -$command_prefx "/var/lib/ambari-agent/bin/ambari-agent $@" +eval "$command_prefx '/var/lib/ambari-agent/bin/ambari-agent $@'" exit $?
