]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debian: Add "set -e" to postinst scripts
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 Jan 2008 15:38:09 +0000 (10:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Jan 2008 15:39:45 +0000 (10:39 -0500)
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>
debian/libuuid1.postinst
debian/uuid-runtime.postinst

index 2f46f124ea2a01753088f4208eeaa6b0a7d914f5..50a86183bb303d2c5d4960c65e7e4622ba0520b7 100644 (file)
@@ -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
index 98293f90f287545957240a0c75f34524567520ee..36cd7b969d486c1eb3cbdab435c64831293739f7 100644 (file)
@@ -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