Commit 10913583 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Bring backward compatibility back with vcl.list

In current trunk or soon-to-be Varnish 6.2 the format of vcl.list
changed and broke the varnishreload script. Because the temperature
and state column was split into two columns, field offsets became
off by one.

The forward slash character previously used inside the single column
is now part of the field separator when the output of vcl.list is
handled by awk, working for both Varnish 6.2 and previously supported
versions.

Refs #121
parent e0b5794e
......@@ -100,7 +100,7 @@ vcl_reload_name() {
}
awk_vcl_list() {
printf '%s' "$VCL_LIST" | awk "$@"
printf '%s' "$VCL_LIST" | awk -F ' *|/' "$@"
}
active_vcl() {
......
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