forked from pool/system-user-grommunio
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:
parent
360c238c3b
commit
409cc57d95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user