ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: AMBARI-7484 Versioned RPMS install fails on after-install Hook. (dsen)
Date Thu, 25 Sep 2014 12:26:55 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 1d7fa6ad0 -> b0981a98a


AMBARI-7484 Versioned RPMS install fails on after-install Hook. (dsen)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b0981a98
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b0981a98
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b0981a98

Branch: refs/heads/trunk
Commit: b0981a98a92520bf964a640fc1c45008a2978dcb
Parents: 1d7fa6a
Author: Dmytro Sen <dsen@hortonworks.com>
Authored: Thu Sep 25 15:26:43 2014 +0300
Committer: Dmytro Sen <dsen@hortonworks.com>
Committed: Thu Sep 25 15:26:43 2014 +0300

----------------------------------------------------------------------
 .../2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b0981a98/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
index 3aba886..4c633d2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
@@ -40,8 +40,9 @@ def setup_hadoop_env():
          content=InlineTemplate(params.hadoop_env_sh_template)
     )
     if params.rpm_version is not None:
-      Execute(format('ln -s /usr/hdp/{rpm_version}* {versioned_hdp_root}'),
-              not_if=format('ls {versioned_hdp_root}')
+      Execute(format('ln -s /usr/hdp/{rpm_version}-* {versioned_hdp_root}'),
+              not_if=format('ls {versioned_hdp_root}'),
+              only_if=format('ls -d /usr/hdp/{rpm_version}-*')
       )
 
 def setup_config():


Mime
View raw message