forked from pool/sysuser-tools
7 lines
246 B
Plaintext
7 lines
246 B
Plaintext
|
#!/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'
|