prerm is in ganeti-2.15 2.15.2-3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
set -e
if [ "$1" = "remove" ]; then
. /usr/share/debconf/confmodule
if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/2.15 ]; then
db_version 2.0
db_fset ganeti-2.15/abort-removal seen false
db_subst ganeti-2.15/abort-removal version 2.15
db_subst ganeti-2.15/abort-removal package ganeti-2.15
db_input critical ganeti-2.15/abort-removal
db_go
db_get ganeti-2.15/abort-removal
if [ "$RET" = "true" ]; then
echo "Aborting removal on user request"
exit 1;
fi
fi
fi
# Automatically added by dhpython:
if which pyclean >/dev/null 2>&1; then
pyclean -p ganeti-2.15
else
dpkg -L ganeti-2.15 | grep \.py$ | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
|