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:
parent
26837c2859
commit
7339b81b43
4 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue