You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
324 B

3 years ago
#!/bin/sh -eu
# ensure that all the necesary system groups exist
echo '/usr/share/install3/default-groups
/etc/alterator/auth/user-groups
/etc/alterator/auth/admin-groups' \
| while read LIST; do
[ -s "$LIST" ] || continue
for GROUP in $(cat "$LIST"); do
groupadd -r "$GROUP" &>/dev/null ||:
done
done