summaryrefslogtreecommitdiff
path: root/debian/libuuid1.postinst.illumos-amd64
blob: 57c40bd0bc98ec1bc84e3e6ec641ba3ea74c1b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

# *add for Illumos have different semantic for -K options
# and also lack -f option

if ! getent group | grep -q libuuid; then
  groupadd libuuid
fi
if ! getent passwd | grep -q libuuid; then
   useradd -d /var/lib/libuuid -g libuuid libuuid
fi

mkdir -p /var/lib/libuuid
chown libuuid:libuuid /var/lib/libuuid
chmod 2775 /var/lib/libuuid

#DEBHELPER#

exit 0