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-15490. DB connection check installs JDK with incorrect permissions. umask 027, non root (aonishuk)
Date Mon, 21 Mar 2016 16:14:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 0c650bcfa -> e4e696d92


AMBARI-15490. DB connection check installs JDK with incorrect permissions. umask 027, 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/e4e696d9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e4e696d9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e4e696d9

Branch: refs/heads/branch-2.2
Commit: e4e696d925c8f6fe889b22323ecbd32183a7dd6e
Parents: 0c650bc
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Mar 21 18:14:07 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Mar 21 18:14:07 2016 +0200

----------------------------------------------------------------------
 .../src/main/resources/custom_actions/scripts/check_host.py         | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e4e696d9/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/custom_actions/scripts/check_host.py b/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
index 9b5a0c3..2dbd676 100644
--- a/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
+++ b/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
@@ -358,6 +358,7 @@ class CheckHost(Script):
           Execute(install_cmd, not_if = format("test -e {java_exec}"))
           File(format("{java_home}/bin/java"), mode=0755, cd_access="a")
           Execute(("chown","-R", getpass.getuser(), java_home), sudo = True)
+          Execute(('chmod', '-R', '755', java_home), sudo = True)
         except Exception, e:
           message = "Error installing java.\n" + str(e)
           print message


Mime
View raw message