summaryrefslogtreecommitdiff
path: root/extra/varnish/varnish.install
blob: 66e825f70c571d4189730f980274162cc8c741c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# remove localstatedir -- compiled VCL and slab files will still be here.
post_remove() {
  rm -rf var/lib/varnish
}

post_upgrade() {
  if [ "$(vercmp 4.0.0-1 "$2")" -eq 1 ]; then
    echo ":: You must update your VCL to be compatible with 4.0.0. See the following"
    echo "   upgrade guide to port your configuration:"
    echo "   https://www.varnish-cache.org/docs/trunk/whats-new/upgrading.html"
  fi
}