diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-03 12:46:16 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-03 12:46:16 -0400 |
commit | e3e9a0947a2b04348cc9b77aff054960485b4393 (patch) | |
tree | 75977d8f2eff44dba130ccb16a75f9ab356fa500 | |
parent | 1f1c60fc12c04a4a086df356650fdec4de051fc2 (diff) | |
download | html5ks-e3e9a0947a2b04348cc9b77aff054960485b4393.tar.xz html5ks-e3e9a0947a2b04348cc9b77aff054960485b4393.zip |
nginx.sh: don't keep appending to nginx.gen.conf
-rwxr-xr-x | nginx.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ #!/bin/sh cd "`dirname $0`" -touch nginx.gen.conf +# 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 |