File: postfix-mta-sts-resolver.postinst

package info (click to toggle)
postfix-mta-sts-resolver 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 536 kB
  • sloc: python: 3,069; sh: 226; makefile: 47
file content (17 lines) | stat: -rwxr-xr-x 313 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

set -e


USERNAME=_mta-sts
VARLIB=/var/lib/mta-sts/

adduser --quiet --system --force-badname --disabled-login \
            --no-create-home --home $VARLIB \
            --shell /usr/sbin/nologin --group "$USERNAME"

mkdir --parents --mode=0755 $VARLIB
chown $USERNAME:$USERNAME $VARLIB


#DEBHELPER#