Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…nger 3 or later.
  • Loading branch information...
commit 3dbb6091230e528e3bb1be8ee0cc2c7f6a70c234 1 parent 241dab9
@wfarr wfarr authored
Showing with 11 additions and 5 deletions.
  1. +11 −5 lib/moonshine/manifest/rails/passenger.rb
View
16 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
Please sign in to comment.
Something went wrong with that request. Please try again.