File: config

package info (click to toggle)
darkstat 3.0.722-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: ansic: 7,585; sh: 660; javascript: 213; makefile: 174; 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