File: tinyproxy.postrm

package info (click to toggle)
tinyproxy 1.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,632 kB
  • sloc: ansic: 6,109; sh: 4,452; perl: 347; makefile: 172
file content (15 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = "purge" ] ; then
    if getent passwd tinyproxy >/dev/null; then
        if which deluser >/dev/null 2>&1; then
            deluser --quiet --system tinyproxy || echo "Could not remove tinyproxy user."
        fi
    fi
    # Get rid of leftover logs
    rm -rf /var/log/tinyproxy
fi

#DEBHELPER#