From 25c4718bee6fa0940791c5a0ec5a207b5de2c393 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Wed, 29 Dec 2021 15:17:18 -0500 Subject: [PATCH] Fix centos build permissions --- fedora/jellyfin-web.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fedora/jellyfin-web.spec b/fedora/jellyfin-web.spec index d8195fb3fe..3a4e0aeace 100644 --- a/fedora/jellyfin-web.spec +++ b/fedora/jellyfin-web.spec @@ -30,6 +30,10 @@ Jellyfin is a free software media system that puts you in control of managing an %build %install +%if 0%{?rhel} > 0 && 0%{?rhel} < 8 +# Required for CentOS build +chown root:root -R . +%endif npm ci --no-audit --unsafe-perm %{__mkdir} -p %{buildroot}%{_datadir} mv dist %{buildroot}%{_datadir}/jellyfin-web