File: dqcache.preinst

package info (click to toggle)
dq 20181021-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,620 kB
  • sloc: ansic: 9,200; sh: 419; python: 77; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
set -e

# upgrading from version < 20181021-1
# remove user dqcachelog
if [ x"$1" = "xupgrade" ]; then
  if [ x"$2" != "x" ]; then
    if dpkg --compare-versions "$2" lt '20181021-1'; then
      deluser --force dqcachelog || :
    fi
  fi
fi

#DEBHELPER#