summaryrefslogtreecommitdiff
path: root/nginx.sh
blob: e00f519d16bab522b59307c01d2d183893ea5282 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
cd "`dirname $0`"
# empty file
> nginx.gen.conf
if nginx -V 2>&1 | grep -q -- --with-http_gzip_static_module; then
  echo "gzip_static on" >> nginx.gen.conf
fi
exec nginx -p "$PWD" -c nginx.conf