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: httpd
- name: mod_wsgi - name: mod_wsgi
- name: nodejs - name: nodejs
- name: nodejs-npm - name: nodejs-compat-symlinks
- name: npm
pips: pips:
- name: django - name: django
version: "1.4" version: "1.4"

24
smithy
View File

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