Commit 6872091
committed
debian: create fastrpc group and add user to it in postinstall
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 <shoudil@qti.qualcomm.com>1 parent 9c10b07 commit 6872091
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments