diff --git a/RPM/rpm_postun b/RPM/rpm_postun index 0b130e27e8..fb6028fd85 100644 --- a/RPM/rpm_postun +++ b/RPM/rpm_postun @@ -1 +1,3 @@ -rm -f /etc/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig +if [ $1 -eq 0 ]; then + rm -f /etc/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig +fi