Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pkg-varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
pkg-varnish-cache
Commits
fcbdea08
Commit
fcbdea08
authored
Mar 22, 2017
by
Dridi Boukelmoune
Committed by
Denis Brækhus
Oct 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to count VCLs with the active VCL's name
Confirmed by testing the behavior of various varnish versions.
parent
74f2519d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
varnishreload
varnishreload
+0
-13
No files found.
varnishreload
View file @
fcbdea08
...
...
@@ -48,11 +48,6 @@ fail() {
exit
1
}
vcl_count
()
{
varnishadm vcl.list |
awk
"BEGIN {n=0}
\$
NF ==
\"
$1
\"
{n=n+1} END {print n}"
}
vcl_file
()
{
if
!
VCL_SHOW
=
"
$(
varnishadm vcl.show
-v
"
$1
"
)
"
then
...
...
@@ -73,15 +68,7 @@ vcl_active_name() {
vcl_active_file
()
{
set
-e
VCL_NAME
=
$(
vcl_active_name
)
VCL_COUNT
=
$(
vcl_count
"
$VCL_NAME
"
)
# XXX: it can happen with a discard but I haven't checked whether it
# actually messes with vcl.show (I suspect we don't need this).
test
"
$VCL_COUNT
"
-gt
1
&&
fail
"more than one VCL named
$VCL_NAME
(
$VCL_COUNT
)"
vcl_file
"
$VCL_NAME
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment