From: Theodore Ts'o Date: Mon, 14 Jan 2008 15:38:09 +0000 (-0500) Subject: debian: Add "set -e" to postinst scripts X-Git-Tag: v1.40.5~21 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=351db0b55d44aa1922b7efc2a7ae2907858b35cb;p=tools%2Fe2fsprogs.git debian: Add "set -e" to postinst scripts This ensures that if there is some failure in adding the uid/gid, the package installation will abort. Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/libuuid1.postinst b/debian/libuuid1.postinst index 2f46f12..50a8618 100644 --- a/debian/libuuid1.postinst +++ b/debian/libuuid1.postinst @@ -1,5 +1,6 @@ #!/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 diff --git a/debian/uuid-runtime.postinst b/debian/uuid-runtime.postinst index 98293f9..36cd7b9 100644 --- a/debian/uuid-runtime.postinst +++ b/debian/uuid-runtime.postinst @@ -1,5 +1,6 @@ #!/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