summaryrefslogtreecommitdiff
path: root/extra/varnish/varnish.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/varnish/varnish.install')
-rw-r--r--extra/varnish/varnish.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/varnish/varnish.install b/extra/varnish/varnish.install
index 1cbb1f16e..66e825f70 100644
--- a/extra/varnish/varnish.install
+++ b/extra/varnish/varnish.install
@@ -4,3 +4,11 @@
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
+}