mirror of https://github.com/sipwise/repoapi.git
* clean up previous virtualenv directory on preinst Change-Id: I7ccc32193798382d340b06db59e91d602007ae72mprokop/trixie
parent
983d11a11a
commit
8db117160b
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
LIB_DIR=/var/lib/repoapi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
install|upgrade)
|
||||||
|
if dpkg --compare-versions "$2" le "0.4.7"; then
|
||||||
|
rm -rf "${LIB_DIR}/venv_prod"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
abort-upgrade)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "preinst called with unknown argument '$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
Loading…
Reference in new issue