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" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2008-01-14 10:38:09 -05:00
parent c40ad3674c
commit 351db0b55d
2 changed files with 2 additions and 0 deletions

View 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

View 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