From 7e4a12a3fa72ffaf1cc4d75009e865f9d69e846151eaa9f2687916ef982d927e Mon Sep 17 00:00:00 2001 From: Darragh O'Reilly Date: Tue, 23 Jan 2024 14:28:17 +0000 Subject: [PATCH] Accepting request 1139763 from home:ateixeira:branches:security:sensor - Fixed Debian %postun scripts being used for other distros. OBS-URL: https://build.opensuse.org/request/show/1139763 OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=60 --- velociraptor.changes | 5 +++++ velociraptor.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/velociraptor.changes b/velociraptor.changes index 92514d7..fd35415 100644 --- a/velociraptor.changes +++ b/velociraptor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 18 15:36:50 UTC 2024 - Antonio Teixeira + +- Fixed Debian %postun scripts being used for other distros. + ------------------------------------------------------------------- Wed Dec 20 21:08:36 UTC 2023 - Jeff Mahoney diff --git a/velociraptor.spec b/velociraptor.spec index 03a246e..e2b4ab1 100644 --- a/velociraptor.spec +++ b/velociraptor.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -1223,7 +1223,7 @@ install -D -m 0755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir} %service_del_postun %{name}.service %endif -%if "%{_vendor}" != "debbuild" +%if "%{_vendor}" == "debbuild" %postun # Automatically added by dh_installsystemd/13.11.4 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then