X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d263f9d2c3b9004efd0df2bcc162816b3f155f0d..bf5b0dc42fae3342d51a6c74c8a61c94189c7bcb:/debian/invirt-web.preinst?ds=sidebyside 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)