mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Create a seprate user for sing-box during isntallation
This commit is contained in:
parent
f0ba3d00a2
commit
23cf2bc8a7
1 changed files with 8 additions and 0 deletions
|
|
@ -567,6 +567,14 @@ Description: v2rayN (Avalonia) GUI client for Linux
|
|||
Shadowsocks / tuic / WireGuard.
|
||||
EOF
|
||||
|
||||
# preinst
|
||||
install -m 755 /dev/stdin "$DEBIAN_DIR/preinst" <<'EOF'
|
||||
#!/bin/sh
|
||||
set -e
|
||||
useradd --no-create-home --uid 785 --system v2rayn-core
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
# postinst
|
||||
install -m 755 /dev/stdin "$DEBIAN_DIR/postinst" <<'EOF'
|
||||
#!/bin/sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue