mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-14 19:45:45 +00:00
Dont attempt to create a user that already exists
This commit is contained in:
parent
e0ae89b5a6
commit
cf19225cbd
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue