File: gnustep-base-runtime.preinst

package info (click to toggle)
gnustep-base 1.27.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,508 kB
  • sloc: objc: 215,462; ansic: 35,037; sh: 179; makefile: 123; cpp: 122; xml: 32
file content (24 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e
set -u

# Upgrades from stretch to buster have made the gdomap daemon enabled
# by default which is undesirable.  Explicitly delete the symlinks and
# let update-rc.d recreate them in postinst.  See #939119.
# Remove after bullseye is released.
if [ "$1" = "upgrade" ]; then
    if dpkg --compare-versions "$2" lt 1.26.0-6; then
        ENABLED=no
        if [ -f /etc/default/gdomap ]; then
            . /etc/default/gdomap
        fi
        if [ "$ENABLED" != "yes" ]; then
            find /etc/rc?.d -name "*gdomap" -delete
        fi
    fi
fi

#DEBHELPER#

exit 0