toolkit/func/core/pkg_setup/10-test-group-file.sh

12 lines
268 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "setup" "Testing /etc/group file"
NOBODY=65534
grep -q "root:x:0" /etc/group && \
grep -q "bin:x:1" /etc/group && \
grep -q "daemon:x:2" /etc/group && \
grep -q "sys:x:3" /etc/group && \
grep -q "nobody:x:${NOBODY}" /etc/group
r_checkExitStatus $?