Accepting request 141955 from home:dimstar:branches:server:irc

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

This did not cause errors as it's masked away with || ;;

OBS-URL: https://build.opensuse.org/request/show/141955
OBS-URL: https://build.opensuse.org/package/show/server:irc/atheme?expand=0&rev=43
This commit is contained in:
Jan Engelhardt 2012-11-19 19:42:31 +00:00 committed by Git OBS Bridge
parent 1495f4cd53
commit 33aa7db466
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 19 17:12:57 UTC 2012 - dimstar@opensuse.org
- Fix useradd invocation: -o is useless without -u and newer
versions of pwdutils/shadowutils fail on this now.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 31 12:55:59 UTC 2012 - jengelh@inai.de Thu May 31 12:55:59 UTC 2012 - jengelh@inai.de

View File

@ -120,7 +120,7 @@ cp -v "$b/%_sysconfdir/%name"/atheme.motd{.example,}
/usr/bin/getent group atheme >/dev/null 2>/dev/null || \ /usr/bin/getent group atheme >/dev/null 2>/dev/null || \
/usr/sbin/groupadd -r atheme >/dev/null || :; /usr/sbin/groupadd -r atheme >/dev/null || :;
/usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \ /usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \
/usr/sbin/useradd -r -o -g atheme -s /bin/false \ /usr/sbin/useradd -r -g atheme -s /bin/false \
-c "%name daemon" -d "%atheme_home" atheme >/dev/null || :; -c "%name daemon" -d "%atheme_home" atheme >/dev/null || :;
%preun %preun