From 6162daf8138053634a3b961bff98e0c09e2b62a9 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 10 Jul 2024 18:21:29 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9C=8D=E5=8A=A1omc.service=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/debbuild/DEBIAN/postrm | 3 ++- build/rpmbuild/BUILD/{usr => }/lib/systemd/system/.gitkeep | 0 build/rpmbuild/SPECS/omc.spec | 3 +-- build/system/{usr => }/lib/systemd/system/omc.service | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename build/rpmbuild/BUILD/{usr => }/lib/systemd/system/.gitkeep (100%) rename build/system/{usr => }/lib/systemd/system/omc.service (100%) diff --git a/build/debbuild/DEBIAN/postrm b/build/debbuild/DEBIAN/postrm index 183453b..d704f1b 100644 --- a/build/debbuild/DEBIAN/postrm +++ b/build/debbuild/DEBIAN/postrm @@ -2,4 +2,5 @@ systemctl stop omc.service systemctl disable omc.service -systemctl daemon-reload \ No newline at end of file +systemctl daemon-reload +rm -rf /lib/systemd/system/omc.service diff --git a/build/rpmbuild/BUILD/usr/lib/systemd/system/.gitkeep b/build/rpmbuild/BUILD/lib/systemd/system/.gitkeep similarity index 100% rename from build/rpmbuild/BUILD/usr/lib/systemd/system/.gitkeep rename to build/rpmbuild/BUILD/lib/systemd/system/.gitkeep diff --git a/build/rpmbuild/SPECS/omc.spec b/build/rpmbuild/SPECS/omc.spec index 90d367b..b2dc5b0 100644 --- a/build/rpmbuild/SPECS/omc.spec +++ b/build/rpmbuild/SPECS/omc.spec @@ -70,10 +70,9 @@ firewall-cmd --reload if [ "$1" = "0" ] ; then sudo systemctl stop omc.service -rm -rf /usr/local/omc -rm -rf /usr/local/etc/omc sudo systemctl disable omc.service sudo systemctl daemon-reload +rm -rf /lib/systemd/system/omc.service else sudo systemctl daemon-reload sudo systemctl stop omc.service diff --git a/build/system/usr/lib/systemd/system/omc.service b/build/system/lib/systemd/system/omc.service similarity index 100% rename from build/system/usr/lib/systemd/system/omc.service rename to build/system/lib/systemd/system/omc.service