From 1cda2618f369d8402ba59bdceeb86ca3ff737416 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 30 Apr 2025 11:29:15 +0800 Subject: [PATCH] fix: ../spec --- rpmbuild/SPECS/omc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index 9cc1d65..083c067 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -111,7 +111,7 @@ echo "done" # 卸载时执行 %postun UsrLocalBinDir=/usr/local/bin -rm -f ${UsrLocalBinDir}/omcd +OMCDaemon=omcd if [ "$1" = "0" ] ; then sudo systemctl stop restagent.service @@ -128,6 +128,7 @@ if [ "$1" = "0" ] ; then firewall-cmd --zone=public --remove-port=${Port}/tcp --permanent done firewall-cmd --reload + rm -f ${UsrLocalBinDir}/${OMCDaemon} else sudo systemctl daemon-reload sudo systemctl stop restagent.service