forked from pool/sysuser-tools
81802b4712
- 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
8 lines
210 B
Bash
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 ]]' |