Whamcloud - gitweb
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 2f46f12..50a8618 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 98293f9..36cd7b9 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