ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-21379. Ambari Agent doesn't start as non-root user with "ambari-agent start" logged in as root (aonishuk)
Date Wed, 05 Jul 2017 11:38:37 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 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/trunk
Commit: 29203a15d7ca0a6e65eca8e1d641f49974e55cb8
Parents: 8ba5c3e
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Jul 5 14:25:48 2017 +0300
Committer: Andrew Onishuk <aonishuk@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 $?


Mime
View raw message