From 3615eea94d6ca69adcad5dfa98fe21797b1ae25d Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sat, 16 Sep 2023 15:03:57 +0800 Subject: [PATCH] d --- rpmbuild/SPECS/omc.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index 1ef3456..30cccfa 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -97,6 +97,7 @@ systemctl enable adb.service # 卸载时执行 %postun +UsrLib64Dir=/usr/lib64 if [ "$1" = "0" ] ; then systemctl stop restagent.service systemctl stop crontask.service @@ -111,6 +112,7 @@ systemctl disable sshsvc.service systemctl disable captrace.service systemctl disable adb.service systemctl daemon-reload +cd ${UsrLib64Dir} rm libwireshark.so.15 rm libwireshark.so rm libwiretap.so.12 @@ -125,6 +127,7 @@ systemctl restart restagent.service systemctl restart crontask.service systemctl restart sshsvc.service systemctl restart captrace.service +cd ${UsrLib64Dir} rm libwireshark.so.15 rm libwireshark.so rm libwiretap.so.12