Commit b8ff3f5f authored by Federico G. Schwindt's avatar Federico G. Schwindt

Source the default params only if needed

Makes this work with multiple instances under systemd.
Discussed with ingvar on irc.
parent 28198ab8
......@@ -33,8 +33,10 @@ VARNISH_SECRET_FILE=\"$VARNISH_SECRET_FILE\"
"
}
# Read configuration
. /etc/sysconfig/varnish
# Fallback to the default configuration
if [ -z "$VARNISH_VCL_CONF" ]; then
. /etc/sysconfig/varnish
fi
$debug && print_debug
......
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