From a546f1783d0f9c8f7575c09ce14ee68af7318544 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 15 Sep 2025 17:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E5=8D=87=E7=BA=A7=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E5=81=9C=E6=AD=A2omc.service=E4=BB=A5?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/deb/DEBIAN/postinst | 2 ++ pkg/rpm/SPECS/omc.spec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/deb/DEBIAN/postinst b/pkg/deb/DEBIAN/postinst index b301de4..adb7b68 100644 --- a/pkg/deb/DEBIAN/postinst +++ b/pkg/deb/DEBIAN/postinst @@ -48,6 +48,8 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + # Stop Service + systemctl daemon-reload systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then diff --git a/pkg/rpm/SPECS/omc.spec b/pkg/rpm/SPECS/omc.spec index 5f0f12e..167d72a 100644 --- a/pkg/rpm/SPECS/omc.spec +++ b/pkg/rpm/SPECS/omc.spec @@ -80,6 +80,8 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + # Stop Service + systemctl daemon-reload systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then