mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-14 19:45:45 +00:00
Run setcap after chmod/chown
This commit is contained in:
parent
ad62b8b319
commit
6833ab01a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue