xbps-triggers: system-accounts: introduce <account>_pgroup to set primary group.

While here also change default home directory to /dev/null if unset.
This commit is contained in:
Juan RP 2015-02-23 22:09:20 +01:00
parent 26837c2859
commit 7339b81b43
4 changed files with 14 additions and 8 deletions

View file

@ -90,6 +90,7 @@ _EOF
eval shell="\$${_uname}_shell"
eval descr="\$${_uname}_descr"
eval groups="\$${_uname}_groups"
eval pgroup="\$${_uname}_pgroup"
if [ -n "$homedir" ]; then
echo "export ${_uname}_homedir=\"$homedir\"" >> $tmpf
fi
@ -102,7 +103,10 @@ _EOF
if [ -n "$groups" ]; then
echo "export ${_uname}_groups=\"${groups}\"" >> $tmpf
fi
unset homedir shell descr groups
if [ -n "$pgroup" ]; then
echo "export ${_uname}_pgroup=\"${pgroup}\"" >> $tmpf
fi
unset homedir shell descr groups pgroup
done
fi
#