From 5078d6ae55b9402ff23d39f87c80966b104f8ee8 Mon Sep 17 00:00:00 2001 From: Valeriy Manzhos <47538801+InvisibleRain@users.noreply.github.com> Date: Mon, 6 Apr 2026 16:44:37 +0300 Subject: [PATCH] Don't change ownership in install. Use postinst instead --- package-debian.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package-debian.sh b/package-debian.sh index 3fa9a206..afac8a7e 100644 --- a/package-debian.sh +++ b/package-debian.sh @@ -294,7 +294,7 @@ download_hev_socks5_tunnel() { tmp="$(mktemp -d)" curl -fL "$url" -o "$tmp/$filename" # The file must be write-protected because of CAP_NET_ADMIN - install -m 544 -o 785 -g 785 "$tmp/$filename" "$outdir/hev-socks5-tunnel" + install -m 544 "$tmp/$filename" "$outdir/hev-socks5-tunnel" rm -rf "$tmp" } @@ -593,6 +593,7 @@ if command -v gtk-update-icon-cache >/dev/null 2>&1; then gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1 || true fi setcap 'CAP_NET_ADMIN+ep' /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel +chown -R v2rayn-core:v2rayn-core /opt/v2rayN/bin/hev_socks5_tunnel exit 0 EOF