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/bd1247fc Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bd1247fc Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bd1247fc Branch: refs/heads/branch-2.4 Commit: bd1247fcea64bff26ed552f46ac3cd89ae184c6f Parents: cef562f Author: Andrew Onishuk <[email protected]> Authored: Wed Jun 8 16:19:03 2016 +0300 Committer: Andrew Onishuk <[email protected]> Committed: Wed Jun 8 16:19:03 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/bd1247fc/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/"
