From f2d3fd943deff0e823fb237904b3ec00493c67c2 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 9 Jun 2020 19:31:37 -0500 Subject: [PATCH] packaging fix1 Change-Id: Ifc8941b2a720628d76e0697debe6a861fa349b2b --- DEBIAN/postinst | 5 +---- RPM/rpm_post | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index f14a4ee14c..141a4de6ec 100644 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -3,10 +3,7 @@ set -e do_ldconfig() { - INSTALL_PATH=/opt/rocm/roctracer - if [ -e "${INSTALL_PATH}" ] ; then - echo /opt/rocm/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf && ldconfig - fi + echo /opt/rocm/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf && ldconfig } case "$1" in diff --git a/RPM/rpm_post b/RPM/rpm_post index 1e5e279075..a19ea861f1 100644 --- a/RPM/rpm_post +++ b/RPM/rpm_post @@ -1,4 +1 @@ -INSTALL_PATH=/opt/rocm/roctracer -if [ -e "${INSTALL_PATH}" ] ; then - echo /opt/rocm/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf && ldconfig -fi +echo /opt/rocm/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf && ldconfig