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