Debian Codegraph @

debian/laniakea-spark.postinst

raw
1 #! /bin/sh
2 set -e
3
4 if [ "$1" = 'configure' ] && [ -z "$DPKG_ROOT" ] && ! getent passwd _lkspark >/dev/null; then
5 # add less-privileged user for the daemon
6 addgroup --force-badname --system _lkspark || true
7 adduser --force-badname --system \
8 --ingroup _lkspark \
9 --home /var/lib/lkspark/ \
10 --no-create-home \
11 --quiet _lkspark || true
12 chown _lkspark:_lkspark /var/lib/lkspark || true
13 fi
14
15 #DEBHELPER#