Accepting request 141960 from home:dimstar:branches:devel:languages:erlang

- Fix useradd invocation: -o is useless without -u and newer
  versions of pwdutils/shadowutils fail on this now.

The error is masked due to || :

OBS-URL: https://build.opensuse.org/request/show/141960
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang?expand=0&rev=62
This commit is contained in:
Sascha Peilicke 2012-11-20 09:45:21 +00:00 committed by Git OBS Bridge
parent 9b7450827e
commit deb58c2356
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 19 18:41:15 UTC 2012 - dimstar@opensuse.org
- Fix useradd invocation: -o is useless without -u and newer
versions of pwdutils/shadowutils fail on this now.
-------------------------------------------------------------------
Sat Nov 17 13:36:31 UTC 2012 - matwey.kornilov@gmail.com

View File

@ -286,7 +286,7 @@ install -D -m 0644 %{S:5} %{buildroot}/var/adm/fillup-templates/sysconfig.erlang
%pre
/usr/sbin/groupadd -r epmd &>/dev/null || :
/usr/sbin/useradd -o -g epmd -s /bin/false -r -c "Erlang Port Mapper Daemon" -d %{epmd_home} epmd &>/dev/null || :
/usr/sbin/useradd -g epmd -s /bin/false -r -c "Erlang Port Mapper Daemon" -d %{epmd_home} epmd &>/dev/null || :
%post
%{_libdir}/erlang/Install -minimal %{_libdir}/erlang >/dev/null 2>/dev/null