Accepting request 142001 from home:dimstar:branches:network:utilities

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

Error is masked due to || :

OBS-URL: https://build.opensuse.org/request/show/142001
OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=16
This commit is contained in:
Andreas Stieger 2012-11-20 08:36:23 +00:00 committed by Git OBS Bridge
parent 5181ebab3f
commit a3b5252d1f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 20 07:51:02 UTC 2012 - dimstar@opensuse.org
- Fix useradd invocation: -o is useless without -u and newer
versions of pwdutils/shadowutils fail on this now.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 7 20:47:22 UTC 2012 - chris@computersalat.de Wed Nov 7 20:47:22 UTC 2012 - chris@computersalat.de

View File

@ -107,7 +107,7 @@ make %{?_smp_mflags}
%pre %pre
/usr/sbin/groupadd -r %{pkg_name} &>/dev/null || : /usr/sbin/groupadd -r %{pkg_name} &>/dev/null || :
/usr/sbin/useradd -o -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{home_dir} %{pkg_name} &>/dev/null || : /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{home_dir} %{pkg_name} &>/dev/null || :
%if %{with systemd} %if %{with systemd}
%service_add_pre %{pkg_name}.service %service_add_pre %{pkg_name}.service
%endif %endif