File: tinyproxy.postrm

package info (click to toggle)
tinyproxy 1.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 6,361; sh: 359; perl: 351; makefile: 190; awk: 4
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#