summaryrefslogtreecommitdiff
path: root/nonsystemd/opensysusers/sysusers-hook
blob: 03fec32dc31888dee98161259475ed72d295a04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

each_conf() {
  while read -r f; do
    "$@" "$(basename "$f")"
  done
}

case $1 in
  sysusers) each_conf /usr/bin/systemd-sysusers ;;
  *) echo >&2 "  Invalid operation '$1'"; exit 1 ;;
esac

exit 0