Whamcloud - gitweb
tests: add tests for expanding inode extra size
[tools/e2fsprogs.git] / debian / uuid-runtime.postinst
index 98293f9..3c1adb6 100644 (file)
@@ -1,7 +1,10 @@
 #!/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