mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-25 17:59:53 +08:00
351db0b55d
This ensures that if there is some failure in adding the uid/gid, the package installation will abort. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 lines
300 B
Bash
15 lines
300 B
Bash
#!/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
|