You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vi...@apache.org on 2012/06/07 05:48:17 UTC
svn commit: r1347367 - in /incubator/ambari/branches/ambari-186: CHANGES.txt
hmc/ShellScripts/puppet_agent_install.sh
Author: vikram
Date: Thu Jun 7 03:48:16 2012
New Revision: 1347367
URL: http://svn.apache.org/viewvc?rev=1347367&view=rev
Log:
AMBARI-516. Fix epel install to be using curl calls. (Contributed by Mahadev)
Modified:
incubator/ambari/branches/ambari-186/CHANGES.txt
incubator/ambari/branches/ambari-186/hmc/ShellScripts/puppet_agent_install.sh
Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347367&r1=1347366&r2=1347367&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun 7 03:48:16 2012
@@ -6,6 +6,8 @@ characters wide.
Release 0.1.x - unreleased
+ AMBARI-516. Fix epel install to be using curl calls. (Mahadev via Vikram)
+
AMBARI-513. Fix for previous patch (Ramya via Vikram)
AMBARI-515. Modules tar size increases. (Jitendra via Vikram)
Modified: incubator/ambari/branches/ambari-186/hmc/ShellScripts/puppet_agent_install.sh
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/ShellScripts/puppet_agent_install.sh?rev=1347367&r1=1347366&r2=1347367&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/ShellScripts/puppet_agent_install.sh (original)
+++ incubator/ambari/branches/ambari-186/hmc/ShellScripts/puppet_agent_install.sh Thu Jun 7 03:48:16 2012
@@ -158,7 +158,9 @@ if [[ "${usingLocalRepo}" == "0" ]]; the
cmd="cat $repoFile | grep \"baseurl\" | awk -F= '{print \$2}'| awk 'NR==1' | sed 's/ //g'"
epelUrl=`eval $cmd`
epelRPM=$epelUrl/epel-release-5-4.noarch.rpm
- rpm -Uvh $epelRPM
+ mkdir -p /tmp/HDP-artifacts/
+ curl -f --retry 10 $epelRPM -o /tmp/HDP-artifacts/epel-release-5-4.noarch.rpm
+ rpm -Uvh /tmp/HDP-artifacts/epel-release-5-4.noarch.rpm
#make sure epel is installed else fail
epel_installed=`yum repolist enabled | grep epel`
if [[ "x$epel_installed" == "x" ]]; then