Run setcap after chmod/chown

This commit is contained in:
Valeriy Manzhos 2026-04-07 16:46:45 +03:00
parent ad62b8b319
commit 6833ab01a8
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -592,10 +592,10 @@ update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
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
chmod 444 /opt/v2rayN/bin/hev_socks5_tunnel/v2rayn-tun.yaml
chmod 544 /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel
setcap 'CAP_NET_ADMIN+ep' /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel
chmod 444 /opt/v2rayN/bin/hev_socks5_tunnel/v2rayn-tun.yaml
chmod +x /opt/v2rayN/bin/sing_box/hev-socks5-tunnel
exit 0
EOF