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

recipes/gui/colord/colord.pre-install main

16 linii Raw ← Powrót
12345678910111213141516
INFO="\033[1;36m"
NORMAL="\033[0;39m"

SN="colord"
IDN="71"

if ! (getent group $SN > /dev/null); then
   printf "${INFO}Creating $SN group${NORMAL}\n"
   groupadd -g $IDN $SN
fi

if ! (getent passwd $SN > /dev/null); then
   printf "${INFO}Creating $SN user${NORMAL}\n"
   useradd -c "Color Daemon Owner" -d /var/lib/$SN \
   -u $IDN -g $SN -s /usr/bin/false $SN
fi