prerm is in redmine 3.4.4-1.
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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ -f /usr/share/dbconfig-common/dpkg/prerm ]; then
. /usr/share/dbconfig-common/dpkg/prerm
db_get redmine/current-instances || true
instances="$RET"
# remove all instances
for inst in "$instances"; do
dbc_go redmine/instances/$inst "$@"
done
# remember the instance list for postrm
# (the dbconf DB is cleaned already,
# listing the /etc/redmine subdirectories might not match reality
# and we should always be able to uninstall no matter how broken things are)
mkdir -p /etc/redmine
echo "$instances" >/etc/redmine/.instances
fi
##
|