X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d263f9d2c3b9004efd0df2bcc162816b3f155f0d..838d2ce0ba6d37f4571997b0ab8650906ad3a455:/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)