Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 cef562f22 -> bd1247fce
  refs/heads/trunk 20b817f10 -> b440ae7f5


AMBARI-17116. Ambari-agent could not successfully restart on non-root after 
running 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/b440ae7f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b440ae7f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b440ae7f

Branch: refs/heads/trunk
Commit: b440ae7f524156fdb42c24d88a52b8fe17c8ab28
Parents: 20b817f
Author: Andrew Onishuk <aonis...@hortonworks.com>
Authored: Wed Jun 8 16:19:01 2016 +0300
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Wed Jun 8 16:19:01 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/b440ae7f/ambari-agent/conf/unix/ambari-agent
----------------------------------------------------------------------
diff --git a/ambari-agent/conf/unix/ambari-agent 
b/ambari-agent/conf/unix/ambari-agent
index 77b475b..b38b872 100755
--- a/ambari-agent/conf/unix/ambari-agent
+++ b/ambari-agent/conf/unix/ambari-agent
@@ -79,9 +79,9 @@ change_files_permissions() {
         ambari-sudo.sh chown -R $current_user "$KEYSDIR"
     fi
        ambari-sudo.sh mkdir -p "$AMBARI_PID_DIR"
-       ambari-sudo.sh chown -R $current_user "$AMBARI_PID_DIR"
+       ambari-sudo.sh chown -R $current_user "$AMBARI_PID_DIR/"
        ambari-sudo.sh mkdir -p "$AMBARI_AGENT_LOG_DIR"
-       ambari-sudo.sh chown -R $current_user "$AMBARI_AGENT_LOG_DIR"
+       ambari-sudo.sh chown -R $current_user "$AMBARI_AGENT_LOG_DIR/"
        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/"

Reply via email to