Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1
sysuser-tools
sysusers-generate-pre
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sysusers-generate-pre of Package sysuser-tools
#!/bin/bash # pass systemd sysusers config files a as argument to this script. # It will output a shell script that creates those users by # appending the data to itself. tmpfile=`mktemp -q -t sysusers.XXXXXX` cleanup() { rm -f "$tmpfile" } trap cleanup EXIT for i in "$@"; do grep -e '^[ugmr]' "$i" >> "$tmpfile" done lines=`wc -l < "$tmpfile"` echo '#!/bin/bash' echo "tail -n $lines \$0 | /usr/sbin/sysusers2shadow" echo 'RET=$?' echo 'test -f /.buildenv && exit 0' echo 'exit $RET' echo '######## data below ########' cat "$tmpfile"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor