From cf19225cbda0458a021948880d00e983dd761d23 Mon Sep 17 00:00:00 2001 From: Valeriy Manzhos <47538801+InvisibleRain@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:55:46 +0300 Subject: [PATCH] Dont attempt to create a user that already exists --- package-debian.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-debian.sh b/package-debian.sh index 177df8af..8df9b891 100644 --- a/package-debian.sh +++ b/package-debian.sh @@ -574,9 +574,9 @@ EOF install -m 755 /dev/stdin "$DEBIAN_DIR/preinst" <<'EOF' #!/bin/bash set -e -useradd --no-create-home --uid 785 --system v2rayn-core -groupadd v2rayn # Users in this group are allowed to use TUN -id -u 1000 && gpasswd -a $(id -un 1000) v2rayn +id -u 785 || useradd --no-create-home --uid 785 --system v2rayn-core +getent group v2rayn || groupadd v2rayn # Users in this group are allowed to use TUN +id -u 1000 && gpasswd -a $(id -un 1000) v2rayn if [ ! -d /etc/iproute2/rt_tables ]; then mkdir -p /etc/iproute2/ fi