summaryrefslogtreecommitdiffstats
path: root/debian/uuid-runtime.postinst
blob: e5ad46d7ce502aabfa311270b93598a160fcab6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

# add uuidd user/group if needed.
if ! getent group uuidd >/dev/null; then
	addgroup --system uuidd
fi
if ! getent passwd uuidd >/dev/null; then
	adduser --system --quiet --ingroup uuidd \
		--home /run/uuidd --no-create-home \
		uuidd
fi

chown uuidd:uuidd /var/lib/libuuid
chmod 2775 /var/lib/libuuid

#DEBHELPER#