public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
passenger / debian / postinst
100755 25 lines (24 sloc) 0.881 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
if ruby -e ''; then
  if ! ruby -rpassenger/native_support -e '' 2>/dev/null; then
    export RUBYLIB=/usr/lib/ruby/1.8
  fi
  passenger-install-apache2-module
  if ! ruby -rubygems -rfastthread -e '' 2>/dev/null; then
    echo
    echo
    echo "****** WARNING WARNING WARNING WARNING WARNING WARNING WARNING ******"
    echo
    echo "Passenger requires the Ruby library 'fastthread', which does not seem to be installed. Since there's no native package for it in the Debian repository, you must install it via RubyGems:"
    echo
    echo " gem install fastthread"
    echo
    echo "Please install fastthread, otherwise Passenger won't work."
    echo
    echo "****** WARNING WARNING WARNING WARNING WARNING WARNING WARNING ******"
  fi
else
  echo "********* NOTE ***********"
  echo "Ruby doesn't seem to be installed. Please install Ruby and RubyGems, because Passenger needs them."
fi
exit 0