Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- apt-get install -q -y libcurl4-openssl-dev
- gem update passenger
- /opt/ruby-enterprise/bin/passenger-install-nginx-module << EOF
- 1
- /opt/nginx
- EOF
- PASSENGER_VERSION=`gem search -l passenger | cut -d ')' -f 1 - | cut -d '(' -f 2 - | cut -d ',' -f 1`
- cp /opt/nginx/conf/nginx.conf "/opt/nginx/conf/nginx.conf.before_passenger$PASSENGER_VERSION"
- sed -i 's|passenger_root .*|passenger_root /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.0;|g' /opt/nginx/conf/nginx.conf
- service nginx stop
- sleep 5
- service nginx start
Add Comment
Please, Sign In to add comment