diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-06-28 18:21:12 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-06-28 18:21:41 +0200 |
commit | e60cf99b0a24412222614746487d31b8f45a520b (patch) | |
tree | 7ac76c487cdb71a74d81749662bb0ab7ee935ac8 /setup-user.in | |
parent | 2d70e784d778da3c498b677c7e22a874e8f0dd13 (diff) | |
download | alpine-conf-e60cf99b0a24412222614746487d31b8f45a520b.zip |
setup-user: exit with error if unlocking user fails
fixes commit 60c9392b6419 (Add -u unlock command to setup-user)
Diffstat (limited to 'setup-user.in')
-rw-r--r-- | setup-user.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-user.in b/setup-user.in index 88f28b4..0c61d3a 100644 --- a/setup-user.in +++ b/setup-user.in @@ -144,5 +144,5 @@ if [ -n "$admin" ]; then fi if [ -n "$forceunlock" ]; then - $MOCK passwd -u "$username" 2> /dev/null -fi
\ No newline at end of file + $MOCK passwd -u "$username" || exit +fi |