config is in torrentflux 2.4-5.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 26 | #!/bin/sh
set -e
#set -x
# source debconf stuff
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
# source dbconfig-common stuff
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
. /usr/share/dbconfig-common/dpkg/config.mysql
dbc_go torrentflux $@
fi
if [ "$1" = "configure" ]
then
# if we are upgrading from version < 2.1 warns the user
if [ "$2" ] && dpkg --compare-versions "$2" lt "2.1"
then
db_input high torrentflux/upgrade_to_21 || true
db_go
fi
fi
|