From d32a1e559cfb1e35dd05cbaf5f7edfa4991c3cfc Mon Sep 17 00:00:00 2001 From: JieXu Date: Wed, 18 Mar 2026 00:27:44 +0800 Subject: [PATCH] Update package-rhel.sh --- package-rhel.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package-rhel.sh b/package-rhel.sh index b5841399..7138848e 100644 --- a/package-rhel.sh +++ b/package-rhel.sh @@ -484,6 +484,11 @@ https://github.com/2dust/v2rayN install -dm0755 %{buildroot}/opt/v2rayN cp -a * %{buildroot}/opt/v2rayN/ +# Normalize permissions +find %{buildroot}/opt/v2rayN -type d -exec chmod 0755 {} + +find %{buildroot}/opt/v2rayN -type f -exec chmod 0644 {} + +[ -f %{buildroot}/opt/v2rayN/v2rayN ] && chmod 0755 %{buildroot}/opt/v2rayN/v2rayN || : + # Launcher (prefer native ELF first, then DLL fallback) install -dm0755 %{buildroot}%{_bindir} install -m0755 /dev/stdin %{buildroot}%{_bindir}/v2rayn << 'EOF'