X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d263f9d2c3b9004efd0df2bcc162816b3f155f0d..60a7f22db38461b0e0085da8adf9b90ebf8ae839:/debian/invirt-web.preinst diff --git a/debian/invirt-web.preinst b/debian/invirt-web.preinst index 3245702..aaaeb0e 100644 --- a/debian/invirt-web.preinst +++ b/debian/invirt-web.preinst @@ -19,6 +19,10 @@ case "$1" in if ! getent group invirt > /dev/null; then addgroup --system invirt fi + + if dpkg --compare-versions "$2" lt 0.1.6~; then + mv /var/www/invirt-web /var/www/invirt-web.bak || : + fi ;; abort-upgrade)