forked from pool/sysuser-tools
6b5a150fa9
- Rewrite UID:GID support to work with busybox and fix it for useradd OBS-URL: https://build.opensuse.org/request/show/1191152 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=57
7 lines
246 B
Bash
7 lines
246 B
Bash
#!/bin/bash
|
|
# pass systemd sysusers config paths as argument to this script.
|
|
|
|
echo "/usr/sbin/sysusers2shadow $2 <<\"EOF\" || [ -f /.buildenv ]"
|
|
(while read -r line; do if [[ $line =~ ^\s*[ugmr] ]]; then echo "$line"; fi; done) < "$1"
|
|
echo 'EOF'
|