Repository: ambari
Updated Branches:
  refs/heads/feature-branch-AMBARI-21307 8ba5c3e3a -> 29203a15d


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/29203a15
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/29203a15
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/29203a15

Branch: refs/heads/feature-branch-AMBARI-21307
Commit: 29203a15d7ca0a6e65eca8e1d641f49974e55cb8
Parents: 8ba5c3e
Author: Andrew Onishuk <aonis...@hortonworks.com>
Authored: Wed Jul 5 14:25:48 2017 +0300
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Wed Jul 5 14:25:48 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/29203a15/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 $?

Reply via email to