From 409cc57d9514c68637600159c441116eb47690bdabe02900b1cf290b10f5b271 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 18 Jan 2023 08:39:24 +0000 Subject: [PATCH] getent for the non-SUSE case OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-grommunio?expand=0&rev=5 --- system-user-grommunio.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-user-grommunio.spec b/system-user-grommunio.spec index c425967..d3bea08 100644 --- a/system-user-grommunio.spec +++ b/system-user-grommunio.spec @@ -58,7 +58,7 @@ echo 'u groweb - "user for grommunio-web"' >>u.conf install -Dpm0644 u.conf "%buildroot/%_sysusersdir/system-user-grommunio.conf" %pre -f user.pre -%if 0%{?suse_version} +%if !0%{?suse_version} getent group grommunio >/dev/null || %_sbindir/groupadd -r grommunio getent passwd grommunio >/dev/null || %_sbindir/useradd -g grommunio -s /sbin/nologin \ -r -c "user for grommunio administration" -d / grommunio