summaryrefslogtreecommitdiff
path: root/debian/config
blob: 7497f7d2fea2c102ece682e3c3058bba4085040f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

APT_CONF=/etc/apt/apt.conf.d/20services

. /usr/share/debconf/confmodule
db_version 2.0

if [ -f $APT_CONF ]; then
    CURRENT=$(sed -ne 's,^\s*Whatmaps::Enable-Restart\s\+"\(\S\+\)"\s*;,\1,p' $APT_CONF)
    case $CURRENT in
        1|true)
           CURRENT="true"
           ;;
        *) CURRENT="false"
           ;;
    esac
    db_set whatmaps/enable_service_restarts $CURRENT
fi

db_input medium whatmaps/enable_service_restarts || true
db_go