You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/07/11 09:21:38 UTC

[2/2] ambari git commit: AMBARI-12386. After running as root, ambari-agent won't start or stop as non-root (aonishuk)

AMBARI-12386. After running as root, ambari-agent won't start or stop as non-root (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0bd575b8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0bd575b8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0bd575b8

Branch: refs/heads/branch-2.1
Commit: 0bd575b8ae7d35ef821e547dc30ed9acc19ab920
Parents: 85c6880
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Sat Jul 11 10:21:28 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Sat Jul 11 10:21:28 2015 +0300

----------------------------------------------------------------------
 ambari-agent/conf/unix/ambari-agent | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0bd575b8/ambari-agent/conf/unix/ambari-agent
----------------------------------------------------------------------
diff --git a/ambari-agent/conf/unix/ambari-agent b/ambari-agent/conf/unix/ambari-agent
index 2d38067..9a57554 100755
--- a/ambari-agent/conf/unix/ambari-agent
+++ b/ambari-agent/conf/unix/ambari-agent
@@ -56,11 +56,11 @@ if [ "$?" != "0" ] && [ "$EUID" -ne 0 ] ; then
 fi
 
 change_files_permissions() {
-	ambari-sudo.sh chown -R $current_user "/var/run/ambari-agent"
-	ambari-sudo.sh chown -R $current_user "/var/log/ambari-agent"
-	ambari-sudo.sh chown -R $current_user "/var/lib/ambari-agent/data"
-	ambari-sudo.sh chown -R $current_user "/var/lib/ambari-agent/cache"
-	ambari-sudo.sh chown 	  $current_user "/usr/lib/ambari-agent"
+	ambari-sudo.sh chown -R $current_user "/var/run/ambari-agent/"
+	ambari-sudo.sh chown -R $current_user "/var/log/ambari-agent/"
+	ambari-sudo.sh chown -R $current_user "/var/lib/ambari-agent/data/"
+	ambari-sudo.sh chown -R $current_user "/var/lib/ambari-agent/cache/"
+	ambari-sudo.sh chown 	$current_user "/usr/lib/ambari-agent/"
 }
 
 if [ -a /usr/bin/python2.7 ] && [ -z "$PYTHON" ]; then