config is in prometheus 2.1.0+ds-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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if dpkg --compare-versions "$2" lt-nl 2~ && test -f /var/lib/prometheus/metrics/VERSION && \
test "$(cat /var/lib/prometheus/metrics/VERSION)" = "1" ; then
db_input high prometheus/remove-version1-database || true
db_go || true
fi
db_stop
|