From e3e9a0947a2b04348cc9b77aff054960485b4393 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 3 Aug 2013 12:46:16 -0400 Subject: nginx.sh: don't keep appending to nginx.gen.conf --- nginx.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.sh b/nginx.sh index c01b602..e00f519 100755 --- a/nginx.sh +++ b/nginx.sh @@ -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 -- cgit v1.2.3-70-g09d2