1
0

fix: ../spec

This commit is contained in:
simon
2025-04-30 11:29:15 +08:00
parent 9046f4daa7
commit 1cda2618f3

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