Use the newer nodejs repo for horizon

This commit is contained in:
Joshua Harlow 2012-08-31 10:40:30 -07:00
parent 5b1880d162
commit 28cb2d504b
2 changed files with 16 additions and 11 deletions

View File

@ -295,7 +295,8 @@ components:
- name: httpd
- name: mod_wsgi
- name: nodejs
- name: nodejs-npm
- name: nodejs-compat-symlinks
- name: npm
pips:
- name: django
version: "1.4"

24
smithy
View File

@ -40,16 +40,20 @@ bootstrap_rh()
echo "Bootstrapping RHEL: $1"
echo "Please wait..."
echo "Installing node.js yum repository configuration."
cat > "/etc/yum.repos.d/epel-nodejs.repo" <<EOF
# Place this file in your /etc/yum.repos.d/ directory
[epel-nodejs]
name=node.js stack in development: runtime and several npm packages
baseurl=http://repos.fedorapeople.org/repos/lkundrak/nodejs/epel-6/\$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0
EOF
JS_REPO_RPM_FN="nodejs-stable-release.noarch.rpm"
if [ ! -f "/tmp/$JS_REPO_RPM_FN" ]; then
echo "Downloading $JS_REPO_RPM_FN"
wget -q -O "/tmp/$JS_REPO_RPM_FN" "http://nodejs.tchol.org/repocfg/el/$JS_REPO_RPM_FN"
if [ $? -ne 0 ]; then
return 1
fi
fi
echo "Installing /tmp/$JS_REPO_RPM_FN."
rpm -i --replacepkgs "/tmp/$JS_REPO_RPM_FN" 2>&1
if [ $? -ne 0 ]; then
return 1
fi
echo "Locating the EPEL rpm."
EPEL_RPM=$(curl -s "http://mirrors.kernel.org/fedora-epel/6/i386/" | grep -io ">\s*epel.*.rpm\s*<" | grep -io "epel.*.rpm")
if [ $? -ne 0 ]; then
return 1