From 31971c8e6eb651cb365b7173896779fdd6760648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Sat, 13 Nov 2021 16:45:32 +0100 Subject: [PATCH] debian postinst: fix user/group mixup --- packaging/debian/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/debian/postinst b/packaging/debian/postinst index 2221958..a5762b6 100644 --- a/packaging/debian/postinst +++ b/packaging/debian/postinst @@ -2,10 +2,10 @@ set -e 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 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 fi