Skip to content

Commit

Permalink
debian/package: warn on incorrect package name w/ Passenger
Browse files Browse the repository at this point in the history
According to Passenger docs:

"You should install nginx-extras even if you have already installed an Nginx package from the
official Debian/Ubuntu repository. This is because the Nginx binary that our packages supply
is compiled with the Passenger module."
  • Loading branch information
3flex authored and Matthew Haughton committed Dec 11, 2014
1 parent c486649 commit fef520f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/package/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
ensure => 'present',
require => Exec['apt_update'],
}

if $package_name != 'nginx-extras' {
warning('You must set $package_name to "nginx-extras" to enable Passenger')
}
}
default: {
fail("\$package_source must be 'nginx-stable', 'nginx-mainline' or 'passenger'. It was set to '${package_source}'")
Expand Down

0 comments on commit fef520f

Please sign in to comment.