File: oslo-messaging-zmq-receiver.postinst

package info (click to toggle)
python-oslo.messaging 8.1.4-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,108 kB
  • sloc: python: 17,845; sh: 454; makefile: 19
file content (15 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    if ! getent group oslo > /dev/null 2>&1; then
        addgroup --system oslo > /dev/null
    fi
    if ! getent passwd oslo > /dev/null 2>&1; then
        adduser --system --home /var/lib/oslo --ingroup oslo \
            --no-create-home --shell /bin/false oslo
    fi
fi

#DEBHELPER#