3
0
forked from pool/sysuser-tools

Accepting request 871218 from home:kukuk:etc

- Remove sysusers/nscd workaround

OBS-URL: https://build.opensuse.org/request/show/871218
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=41
This commit is contained in:
Thorsten Kukuk 2021-02-11 13:54:52 +00:00 committed by Git OBS Bridge
parent c81af58db0
commit 1877b519f4
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 11 13:54:01 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
- Remove sysusers/nscd workaround
-------------------------------------------------------------------
Fri Jan 29 13:36:08 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -9,15 +9,11 @@ run() {
if [ -x /usr/bin/systemd-sysusers ] && [ -e /proc/version ]; then
test -n "$1" && REPLACE_ARG="--replace=/usr/lib/sysusers.d/$1" ||:
if [ -n "$1" ]; then
REPLACE_ARG="--replace=/usr/lib/sysusers.d/$1" ||:
fi
# Use systemd-sysusers and let it read the input directly from stdin
/usr/bin/systemd-sysusers $REPLACE_ARG -
# We need to clear the nscd cache, as systemd-sysusers could have
# triggered a negative cache entry
if [ -x /usr/sbin/nscd ]; then
/usr/sbin/nscd -i passwd ||:
/usr/sbin/nscd -i group ||:
fi
else
# Absolute path to busybox, if found