Permalink
Browse files

Make sure passenger only tries to install libcurl if installing passe…

…nger 3 or later.
  • Loading branch information...
1 parent 241dab9 commit 3dbb6091230e528e3bb1be8ee0cc2c7f6a70c234 @wfarr wfarr committed Nov 9, 2010
Showing with 11 additions and 5 deletions.
  1. +11 −5 lib/moonshine/manifest/rails/passenger.rb
@@ -2,11 +2,17 @@ module Moonshine::Manifest::Rails::Passenger
# Install the passenger gem
def passenger_gem
configure(:passenger => {})
- package "passenger",
- :ensure => (configuration[:passenger][:version] || :latest),
- :provider => :gem,
- :require => [ package('libcurl4-gnutls-dev') ]
- package 'libcurl4-gnutls-dev', :ensure => :installed
+ if configuration[:passenger][:version] && configuration[:passenger][:version] < "3.0"
+ package "passenger",
+ :ensure => configuration[:passenger][:version],
+ :provider => :gem
+ else
+ package "passenger",
+ :ensure => (configuration[:passenger][:version] || :latest),
+ :provider => :gem,
+ :require => [ package('libcurl4-gnutls-dev') ]
+ package 'libcurl4-gnutls-dev', :ensure => :installed
+ end
end
# Build, install, and enable the passenger apache module. Please see the

0 comments on commit 3dbb609

Please sign in to comment.