e2fsprogs/debian/libuuid1.postinst

15 lines
300 B
Plaintext
Raw Normal View History

#!/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
mkdir -p /var/lib/libuuid
chown libuuid:libuuid /var/lib/libuuid
chmod 2775 /var/lib/libuuid
#DEBHELPER#
exit 0