File: postrm

package info (click to toggle)
uanytun 0.3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 540 kB
  • sloc: ansic: 4,097; sh: 369; makefile: 172
file content (17 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# postrm script for uanytun

set -e

if [ "$1" = "purge" ] ; then
   update-rc.d uanytun remove >/dev/null || exit $?

   if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
      deluser  --quiet --system uanytun || true
      delgroup --quiet --system uanytun || true
   else
      echo "Not removing uanytun user and group: adduser package not found." >&2
   fi
fi

#DEBHELPER#