Repository: ambari Updated Branches: refs/heads/trunk 0887e8e3d -> 26b335790
AMBARI-15127. Separate DB operation during upgrade and add them as pre-upgrade tasks (Fix recursive Flag) (gautam) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/26b33579 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/26b33579 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/26b33579 Branch: refs/heads/trunk Commit: 26b3357907362ba75b1e25360633a8634473e12d Parents: 0887e8e Author: Gautam Borad <[email protected]> Authored: Wed Mar 9 15:22:08 2016 +0000 Committer: Gautam Borad <[email protected]> Committed: Thu Mar 10 13:03:01 2016 +0530 ---------------------------------------------------------------------- .../RANGER/0.4.0/package/scripts/setup_ranger_xml.py | 4 ++-- .../common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/26b33579/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py b/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py index 64e49dc..d6243a2 100644 --- a/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py +++ b/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py @@ -267,7 +267,7 @@ def copy_jdbc_connector(stack_version=None): Directory(params.java_share_dir, mode=0755, - recursive=True, + create_parents=True, cd_access="a" ) @@ -291,7 +291,7 @@ def copy_jdbc_connector(stack_version=None): Directory(params.jdbc_libs_dir, cd_access="a", - recursive=True) + create_parents=True) Execute(as_sudo(['yes', '|', 'cp', params.libs_path_in_archive, params.jdbc_libs_dir], auto_escape=False), path=["/bin", "/usr/bin/"]) http://git-wip-us.apache.org/repos/asf/ambari/blob/26b33579/ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py b/ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py index c307f18..92fe529 100755 --- a/ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py +++ b/ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py @@ -271,7 +271,7 @@ def copy_jdbc_connector(stack_version=None): Directory(params.java_share_dir, mode=0755, - recursive=True, + create_parents=True, cd_access="a" ) @@ -295,7 +295,7 @@ def copy_jdbc_connector(stack_version=None): Directory(params.jdbc_libs_dir, cd_access="a", - recursive=True) + create_parents=True) Execute(as_sudo(['yes', '|', 'cp', params.libs_path_in_archive, params.jdbc_libs_dir], auto_escape=False), path=["/bin", "/usr/bin/"])
