1
0
forked from pool/sysuser-tools
sysuser-tools/sysusers-generate-pre
Thorsten Kukuk 81802b4712 Accepting request 785867 from home:favogt:branches:openSUSE:Factory
- Drop use of tail from the generated %pre scriptlets

I'll try dropping the bash dep next. A pure lua implementation is possible, but would require some work and is IMO not really necessary. If any of those users are needed, there's very likely also a shell available. For system-user-root it's already pure lua.

OBS-URL: https://build.opensuse.org/request/show/785867
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=22
2020-03-17 14:34:59 +00:00

8 lines
210 B
Bash

#!/bin/bash
# pass systemd sysusers config files a as argument to this script.
echo '#!/bin/bash'
echo 'cat <<"EOF" |'
grep -he '^[ugmr]' "$@"
echo 'EOF'
echo '/usr/sbin/sysusers2shadow || [[ -f /.buildenv ]]'