debian postinst: fix user/group mixup
This commit is contained in:
parent
294a46df86
commit
31971c8e6e
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
||||||
set -e
|
set -e
|
||||||
BUILDER_WEB_USER=builder
|
BUILDER_WEB_USER=builder
|
||||||
|
|
||||||
if ! getent passwd "$BUILDER_WEB_USER" >/dev/null; then
|
if ! getent group "$BUILDER_WEB_USER" >/dev/null; then
|
||||||
groupadd -g 497 $BUILDER_WEB_USER
|
groupadd -g 497 $BUILDER_WEB_USER
|
||||||
fi
|
fi
|
||||||
if ! getent group "$BUILDER_WEB_USER" >/dev/null; then
|
if ! getent passwd "$BUILDER_WEB_USER" >/dev/null; then
|
||||||
useradd -g 497 -u 497 -d /nonexistent -s /usr/sbin/nologin $BUILDER_WEB_USER
|
useradd -g 497 -u 497 -d /nonexistent -s /usr/sbin/nologin $BUILDER_WEB_USER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue