mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-29 07:21:46 +00:00
Remove rpm-state directory instead of just single file.
This commit is contained in:
parent
f93b6a13f4
commit
7649126248
@ -61,7 +61,7 @@ if [ ! -e %{_bindir}/nvidia-container-runtime-hook ]; then
|
|||||||
# reparing lost file nvidia-container-runtime-hook
|
# reparing lost file nvidia-container-runtime-hook
|
||||||
cp -avf %{_localstatedir}/lib/rpm-state/nvidia-container-toolkit/nvidia-container-runtime-hook %{_bindir}
|
cp -avf %{_localstatedir}/lib/rpm-state/nvidia-container-toolkit/nvidia-container-runtime-hook %{_bindir}
|
||||||
fi
|
fi
|
||||||
rm -f %{_localstatedir}/lib/rpm-state/nvidia-container-toolkit/nvidia-container-runtime-hook
|
rm -rf %{_localstatedir}/lib/rpm-state/nvidia-container-toolkit
|
||||||
ln -sf %{_bindir}/nvidia-container-runtime-hook %{_bindir}/nvidia-container-toolkit
|
ln -sf %{_bindir}/nvidia-container-runtime-hook %{_bindir}/nvidia-container-toolkit
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
Loading…
Reference in New Issue
Block a user