debian: create fastrpc group and add user to it in postinstall - #86
debian: create fastrpc group and add user to it in postinstall#86Shoudi Li (shoudil) wants to merge 1 commit into
Conversation
|
Checked on device: qcom@qcom: |
The postinstall script creates a 'fastrpc' system group via systemd-sysusers, falling back to 'addgroup --system', and adds the installing user to it. $SUDO_USER is preferred over $USER because during package installation $USER resolves to root; $SUDO_USER captures the real caller when invoked via 'sudo apt install ./pkg.deb'. Signed-off-by: Shoudi Li <[email protected]>
d3b763a to
6872091
Compare
The postinstall script creates a 'fastrpc' system group via
systemd-sysusers, falling back to 'addgroup --system', and adds the
installing user to it.
$SUDO_USER is preferred over $USER because during package installation
$USER resolves to root; $SUDO_USER captures the real caller when
invoked via 'sudo apt install ./pkg.deb'.