File: config

package info (click to toggle)
darkstat 3.0.719-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 888 kB
  • sloc: ansic: 6,946; sh: 530; makefile: 175; php: 15
file content (19 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e
# Source debconf library.
. /usr/share/debconf/confmodule

if [ "$1" = "configure" -a "$2" != "" ]; then
    if dpkg --compare-versions "$2" lt "3.0.707-1" ; then
     	db_input medium "darkstat/upgrade-question/db_purge-2.5-1" || true
    fi

    db_go
fi

db_get darkstat/upgrade-question/db_purge-2.5-1 || true
if [ "$RET" = "false" ] ; then
    # user has decided not to upgrade, installation stop here, package not configured.
    false
fi