fix: ../spec

This commit is contained in:
simon committed 2025-04-30 11:29:15 +08:00
1 parent 9046f4daa7
commit 1cda2618f3
1 file changed
+2 -1
+2 -1
View File
@@ -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