File: postrm

package info (click to toggle)
anytun 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,424 kB
  • sloc: cpp: 9,149; sh: 708; makefile: 396
file content (17 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# postrm script for anytun

set -e

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

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

#DEBHELPER#