Create a seprate user for sing-box during isntallation

This commit is contained in:
Valeriy Manzhos 2026-04-06 14:04:32 +03:00
parent f0ba3d00a2
commit 23cf2bc8a7
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -567,6 +567,14 @@ Description: v2rayN (Avalonia) GUI client for Linux
Shadowsocks / tuic / WireGuard. Shadowsocks / tuic / WireGuard.
EOF 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 # postinst
install -m 755 /dev/stdin "$DEBIAN_DIR/postinst" <<'EOF' install -m 755 /dev/stdin "$DEBIAN_DIR/postinst" <<'EOF'
#!/bin/sh #!/bin/sh