Permalink
Browse files

parameterize 'enterprise' and 'community' versions

  • Loading branch information...
1 parent dcf8e14 commit afbdccee387a03a2a3d8a4297a538f6e56f2dee3 @ronniedada ronniedada committed Jul 3, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 gen-pack
  2. +1 −1 template.erb
View
@@ -10,6 +10,7 @@ erb_path = ARGV[0]
num_instances = ARGV[1].to_i
pkg_url = ARGV[2] || 'http://packages.couchbase.com/releases/1.8.0/couchbase-server-community_x86_1.8.0.rpm'
pkg_base = pkg_url.split('/')[-1].split('-')[0] # membase or couchbase
+pkg_ver = pkg_url.split('/')[-1].split('-')[-1].split('_')[0] # enterprise or community
pkg_64 = pkg_url.include?('_64_')
default_instance_type = 'm1.small'
View
@@ -127,7 +127,7 @@
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "PackageURL" },"\n",
- "rpm -i <%= pkg_base %>-server-community*.rpm","\n",
+ "rpm -i <%= pkg_base %>-server-<%= pkg_ver %>*.rpm","\n",
"/bin/sh -c \"", { "Ref" : "AfterInstall" }, "\"\n",
"sleep 5","\n",
<% if pkg_base == 'couchbase' %>

0 comments on commit afbdcce

Please sign in to comment.