;;
esac
+# clear old cached values
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 4.0; then
+ if [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_set carnet-upgrade/debconf-priority ""
+ db_set carnet-upgrade/check-services ""
+ fi
+fi
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
-Template: cn-upgrade/debconf-priority
+Template: carnet-upgrade/debconf-priority
Type: string
Description: Backup of debconf/priority
Backup of debconf/priority
-Template: cn-upgrade/check-services
+Template: carnet-upgrade/check-services
Type: string
Description: Check services
Check services
done
if [ -n "$services" ]; then
- db_set cn-upgrade/check-services "$services"
+ db_set carnet-upgrade/check-services "$services"
db_go || true
fi
}
;;
esac
- db_get cn-upgrade/check-services || true
+ db_get carnet-upgrade/check-services || true
services="${RET// /|}"
failed_services=$(
# checkiraj da li je sto zapisano u debconf
cs_check () {
- db_get cn-upgrade/check-services || true
+ db_get carnet-upgrade/check-services || true
debconf="$RET"
if [ -n "$debconf" ]; then
old_debconf="$RET"
if [ -n "$old_debconf" ]; then
- db_set cn-upgrade/debconf-priority "$old_debconf"
+ db_set carnet-upgrade/debconf-priority "$old_debconf"
fi
db_set debconf/priority high
debconf_priority_postupgrade () {
local new_debconf
- db_get cn-upgrade/debconf-priority || true
+ db_get carnet-upgrade/debconf-priority || true
new_debconf="$RET"
if [ -n "$new_debconf" ]; then
db_set debconf/priority "$new_debconf"
- db_set cn-upgrade/debconf-priority ""
+ db_set carnet-upgrade/debconf-priority ""
fi
db_go || true
# checkiraj
debconf_priority_check () {
- db_get cn-upgrade/debconf-priority || true
+ db_get carnet-upgrade/debconf-priority || true
debconf="$RET"
if [ -n "$debconf" ]; then