File: c-icap.postrm

package info (click to toggle)
c-icap 1:0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,600 kB
  • sloc: ansic: 27,220; sh: 4,415; makefile: 242; perl: 95; awk: 10
file content (21 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

set -e

#DEBHELPER#

if [ $1 = purge ]; then
    rm -rf /var/run/c-icap
    if [ -x "$(command -v deluser)" ]; then
      deluser --quiet --system c-icap > /dev/null || true
    else
      echo >&2 "not removing c-icap system account because deluser command was not found"
    fi
    if [ -x "$(command -v delgroup)" ]; then
      delgroup --quiet --system c-icap > /dev/null || true
    else
      echo >&2 "not removing c-icap group because delgroup command was not found"
    fi
fi

exit 0