From 227d0f11816e735685f0f3a2f2fe185a6c993c40 Mon Sep 17 00:00:00 2001 From: Valeriy Manzhos <47538801+InvisibleRain@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:57:10 +0300 Subject: [PATCH] Control lingering via .deb scripts --- package-debian.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package-debian.sh b/package-debian.sh index 63ee1996..bfc35a28 100644 --- a/package-debian.sh +++ b/package-debian.sh @@ -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 gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1 || true fi +loginctl enable-linger v2rayn-core chown -R v2rayn-core:v2rayn-core /opt/v2rayN/bin/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 @@ -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 gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1 || true fi +loginctl disable-linger v2rayn-core userdel v2rayn-core groupdel v2rayn exit 0