Fix centos build permissions

This commit is contained in:
Bill Thornton 2021-12-29 15:17:18 -05:00
parent 215a27b202
commit 25c4718bee

View file

@ -30,6 +30,10 @@ Jellyfin is a free software media system that puts you in control of managing an
%build %build
%install %install
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
# Required for CentOS build
chown root:root -R .
%endif
npm ci --no-audit --unsafe-perm npm ci --no-audit --unsafe-perm
%{__mkdir} -p %{buildroot}%{_datadir} %{__mkdir} -p %{buildroot}%{_datadir}
mv dist %{buildroot}%{_datadir}/jellyfin-web mv dist %{buildroot}%{_datadir}/jellyfin-web