Use bash in preinst for Command Substitution

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

View file

@ -569,7 +569,7 @@ EOF
# preinst # preinst
install -m 755 /dev/stdin "$DEBIAN_DIR/preinst" <<'EOF' install -m 755 /dev/stdin "$DEBIAN_DIR/preinst" <<'EOF'
#!/bin/sh #!/bin/bash
set -e set -e
useradd --no-create-home --uid 785 --system v2rayn-core useradd --no-create-home --uid 785 --system v2rayn-core
groupadd v2rayn # Users in this group are allowed to use TUN groupadd v2rayn # Users in this group are allowed to use TUN