jobcore/opensysusers/sysusers-hook
2022-03-20 14:19:37 +02:00

14 lines
207 B
Bash

#!/bin/sh -e
each_conf() {
while read -r f; do
"$@" "$(basename "$f")"
done
}
case $1 in
sysusers) each_conf /usr/bin/sysusers ;;
*) echo >&2 " Invalid operation '$1'"; exit 1 ;;
esac
exit 0