File: postinst

package info (click to toggle)
mirrorbits 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: sh: 675; makefile: 93
file content (17 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e 

if [ "$1" = configure ]; then
    if ! getent passwd mirrorbits >/dev/null && ! command -v systemd-sysusers >/dev/null; then
       	adduser --system --group --quiet \
	        --gecos "Mirrorbits System User" \
		--home /var/lib/mirrorbits \
		--shell /bin/bash \
		mirrorbits
    fi
fi

#DEBHELPER#

exit 0