summaryrefslogtreecommitdiff
path: root/debian/uuid-runtime.postinst
blob: 36cd7b969d486c1eb3cbdab435c64831293739f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e
groupadd -f -K GID_MIN=1 -K GID_MAX=999 libuuid
if ! grep -q libuuid /etc/passwd; then
   useradd -d /var/lib/libuuid -K UID_MIN=1 -K UID_MAX=499 -g libuuid libuuid
fi
chown libuuid:libuuid /usr/sbin/uuidd
chmod 6755 /usr/sbin/uuidd

#DEBHELPER#

exit 0