cd11d7530b
I6520b51aac34060b5b90f94a016cec1827a4973f happens after uninstall, which leaves a dangling directory under /opt/rocm/libexec/rocm_smi. Removing __pycache__ before uninstall fixes the issue. Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com> Change-Id: I695bd085d4a43b678b563b4c35f6d2e8ddfa7d7c
7 lines
282 B
Plaintext
Executable File
7 lines
282 B
Plaintext
Executable File
# 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
|