Skip to content

Commit d6134db

Browse files
authored
Update zzws.sh
1 parent 5c17ab3 commit d6134db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zzws.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ fi
5858
fxTitle "Testing Varnish config..."
5959
if [ ! -z $(command -v varnishd) ]; then
6060

61-
varnishd -C -f /etc/varnish/default.vcl
61+
VARNISH_OUTPUT="$(sudo varnishd -C -f /etc/varnish/default.vcl 2>&1)"
6262

6363
if [ $? -eq 0 ]; then
6464
fxOK "Looking good!"
6565
else
66+
fxCatastrophicError "${VARNISH_OUTPUT}" proceed
6667
fxCatastrophicError "Varnish config is failing, cannot proceed"
6768
fi
6869

0 commit comments

Comments
 (0)