#!/bin/sh
set -e

# This is to handle upgrading from old versions of debconf. If the
# file doesn't exist yet, this package is being preconfiged, and
# we might as well just exit and wait until the postinst
# runs the config script.
if [ ! -e /usr/share/debconf/confmodule ]; then
	exit
fi

# shellcheck disable=SC1091
. /usr/share/debconf/confmodule

db_version 2.0
db_capb backup

db_beginblock
db_input medium debconf/frontend || true
db_input medium debconf/priority || true
db_endblock
db_go || true
