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