Control lingering via .deb scripts

This commit is contained in:
Valeriy Manzhos 2026-04-09 18:57:10 +03:00
parent 2be5d41b58
commit 227d0f1181
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -592,6 +592,7 @@ update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
if command -v gtk-update-icon-cache >/dev/null 2>&1; then 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 gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1 || true
fi fi
loginctl enable-linger v2rayn-core
chown -R v2rayn-core:v2rayn-core /opt/v2rayN/bin/hev_socks5_tunnel chown -R v2rayn-core:v2rayn-core /opt/v2rayN/bin/hev_socks5_tunnel
chmod 544 /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel 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 setcap 'CAP_NET_ADMIN+ep' /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel
@ -610,6 +611,7 @@ update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
if command -v gtk-update-icon-cache >/dev/null 2>&1; then 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 gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1 || true
fi fi
loginctl disable-linger v2rayn-core
userdel v2rayn-core userdel v2rayn-core
groupdel v2rayn groupdel v2rayn
exit 0 exit 0