Debian packaging: Fix syntax error in varnishlog init script, and set correct...

Debian packaging: Fix syntax error in varnishlog init script, and set correct variable in defaults file. Add clarifying comment for variable

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2586 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 12e86a25
......@@ -17,8 +17,9 @@ MEMLOCK=82000
INSTANCE=$(uname -n)
# Uncomment this to enable varnishlog. Please make sure you have
# enough disk space for significant amounts of log data.
# VARNISHLOG_ENABLE=1
# enough disk space for significant amounts of log data. To disable
# varnishlog, set the variable to "0", "no", or leave it unset.
# VARNISHLOG_ENABLED=1
# This file contains 4 alternatives, please use only one.
......
......@@ -27,8 +27,9 @@ if [ -f /etc/default/varnish ] ; then
. /etc/default/varnish
fi
# If unset or not 1, exit
if [ -z "${VARNISHLOG_ENABLED}" -o "${VARNISHLOG_ENABLED}" -ne "1" ]; then
# If unset, or set to "0" or "no", exit
if [ -z "${VARNISHLOG_ENABLED}" -o "${VARNISHLOG_ENABLED}" == "0" \
-o "${VARNISHLOG_ENABLED}" == "no" ]; then
exit 0;
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment