]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - debian/uuid-runtime.postinst
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / debian / uuid-runtime.postinst
index b7e4d0b81ffbed0ad95e0c634e73e16732b7a089..3c1adb6324a00d901bda17b74f825dc1cdf337d9 100644 (file)
@@ -1,8 +1,15 @@
 #!/bin/sh
 
+set -e
+if ! getent group | grep -q libuuid; then
 groupadd -f -K GID_MIN=1 -K GID_MAX=999 libuuid
-if ! grep -q libuuid /etc/passwd; then
+fi
+if ! getent passwd | grep -q libuuid; 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