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