diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index 2d49ed0..2eeb4f8 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -151,6 +151,7 @@ systemctl start restagent.service # 卸载时执行 %postun +UsrLocalBinDir=/usr/local/bin UsrLib64Dir=/usr/lib64 cd ${UsrLib64Dir} rm libwireshark.so.15 @@ -159,7 +160,7 @@ rm libwiretap.so.12 rm libwiretap.so rm libwsutil.so.13 rm libwsutil.so -#rm -f ${UsrLocalBinDir}/omcd +rm -f ${UsrLocalBinDir}/omcd if [ "$1" = "0" ] ; then sudo systemctl stop restagent.service sudo systemctl stop crontask.service @@ -169,7 +170,6 @@ sudo systemctl stop captrace.service #sudo systemctl stop nginx.service #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf -rm -f ${UsrLocalBinDir}/omcd sudo systemctl disable restagent.service sudo systemctl disable crontask.service sudo systemctl disable sshsvc.service