diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-02-09 11:30:08 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-02-09 11:30:08 +0100 |
commit | 493dc4f0268a853c8b5488803b14efb5540163b5 (patch) | |
tree | a77d8d21b10cee1b03d038abbc2dc33a6fd4e2d0 /nginx.sh | |
parent | 0871dbf4fc3f8e1083490197b7be7be2b5163d14 (diff) |
initial import
Diffstat (limited to 'nginx.sh')
-rw-r--r-- | nginx.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nginx.sh b/nginx.sh new file mode 100644 index 0000000..b41636f --- /dev/null +++ b/nginx.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +. /etc/profile +passenger-install-nginx-module --auto-download --auto --prefix=/opt/nginx + +cd /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ +passenger=`ls -d passenger*`; +cd - +servername=`hostname`.`dnsdomainname` +echo $passenger +sed -e "s/PASSENGER/$passenger/;s/SERVERNAME/$servername/" nginx.conf > /opt/nginx/conf/nginx.conf |