ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] 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:51 GMT
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/d862f7aa
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d862f7aa
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d862f7aa

Branch: refs/heads/trunk
Commit: d862f7aa8d6570b7d1ce2a9e1ccaebc4db0377b5
Parents: a0877a9
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Mar 21 18:13:11 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Mar 21 18:13:11 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/d862f7aa/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 9b79290..85ccef1 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
@@ -359,6 +359,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")
           Directory(java_home, user=getpass.getuser(), recursive_ownership=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