🔒 Repository is read-only – file editing is disabled.

recipes/utils/rpcbind/rpcbind.post-install main

15 linii Raw ← Powrót
123456789101112131415
INFO="\033[1;36m"
NORMAL="\033[0;39m"
UN=rpc
ID=28

if ! (getent group $UN > /dev/null); then
        printf "${INFO}Creating $UN group${NORMAL}\n"
        groupadd -g $ID $UN
fi
if ! (getent passwd $UN > /dev/null); then
        printf "${INFO}Creating $UN user${NORMAL}\n"
        useradd  -c "RPC Bind Daemon Owner" -d /dev/null \
        -g $UN -s /usr/bin/false -u $ID $UN
fi
systemctl enable rpcbind