2021-07-15 06:47:00 +00:00
|
|
|
#!/bin/bash
|
2020-03-20 11:31:21 +00:00
|
|
|
# pass systemd sysusers config paths as argument to this script.
|
2017-02-16 15:08:58 +00:00
|
|
|
|
2021-06-07 13:14:59 +00:00
|
|
|
echo "/usr/sbin/sysusers2shadow $2 <<\"EOF\" || [ -f /.buildenv ]"
|
2021-07-09 12:08:33 +00:00
|
|
|
(while read -r line; do if [[ $line =~ ^\s*[ugmr] ]]; then echo "$line"; fi; done) < "$1"
|
2020-03-17 14:34:59 +00:00
|
|
|
echo 'EOF'
|