File: tinyproxy.postinst

package info (click to toggle)
tinyproxy 1.11.1-2.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,668 kB
  • sloc: ansic: 6,347; sh: 4,493; perl: 351; makefile: 182
file content (20 lines) | stat: -rw-r--r-- 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# Create a tinyproxy system group
if ! getent group tinyproxy > /dev/null; then
    addgroup --quiet --system tinyproxy
fi

# Create a tinyproxy system user
if ! getent passwd tinyproxy > /dev/null; then
    adduser --quiet --system \
        --ingroup tinyproxy \
        --home /run/tinyproxy \
        --disabled-password --shell /bin/false \
        tinyproxy
    usermod -c "Tinyproxy daemon" tinyproxy
fi

#DEBHELPER#