3a3b8dd25d
Include the upgrade operation check in the prerm and postun scripts for rocm-smi-lib package. Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com> Change-Id: Ic3dee7ae50a2ac317f1aab88472b6d4805c4de90
7 行
282 B
Plaintext
可执行文件
7 行
282 B
Plaintext
可执行文件
# second term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
if [ $1 -le 1 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
|
|
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
|
|
ldconfig
|
|
fi
|