1
0

getent for the non-SUSE case

OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-grommunio?expand=0&rev=5
This commit is contained in:
Jan Engelhardt 2023-01-18 08:39:24 +00:00 committed by Git OBS Bridge
parent 360c238c3b
commit 409cc57d95

View File

@ -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