File: prerm

package info (click to toggle)
localepurge 0.7.3.10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 392 kB
  • sloc: sh: 543; perl: 221; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# Do the debhelper stuff immediately

#DEBHELPER#

DPKG_CONFIG_FILE=/etc/dpkg/dpkg.cfg.d/50localepurge

if [ "$1" = "remove" ]; then
    # If we are being removed, then unconditionally remove the dpkg
    # config file we generated.
    if [ -f "$DPKG_CONFIG_FILE" ] ; then
        echo "localepurge: Disabling auto-generated config file."
        mv -f "$DPKG_CONFIG_FILE" "$DPKG_CONFIG_FILE.disabled"
    fi
fi