From 707a0c0e0bfbd8ebe1f4e98c3211687fb9b463be Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 18 Aug 2025 16:06:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E5=89=8Dstop=20omc.s?= =?UTF-8?q?ervice=EF=BC=8C=E9=98=B2=E6=AD=A2sqlilte=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/deb/DEBIAN/postinst | 1 + pkg/rpm/SPECS/omc.spec | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/deb/DEBIAN/postinst b/pkg/deb/DEBIAN/postinst index 69b57f1..b301de4 100644 --- a/pkg/deb/DEBIAN/postinst +++ b/pkg/deb/DEBIAN/postinst @@ -48,6 +48,7 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then echo "Upgrade failed." diff --git a/pkg/rpm/SPECS/omc.spec b/pkg/rpm/SPECS/omc.spec index 9d034fb..5f0f12e 100644 --- a/pkg/rpm/SPECS/omc.spec +++ b/pkg/rpm/SPECS/omc.spec @@ -80,6 +80,7 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then echo "Upgrade failed."