From e1a1b1e565f4806efb313a6bf04a624a0354f52d Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 20 Jan 2025 14:16:01 +0100 Subject: [PATCH] deb packaging: don't duplicate crowdsec.service if /lib is not linked to /usr/lib (#3415) We don't need to explicitly copy the file, but the standard location is /usr/lib, not /lib - hence we must avoid duplicating it by copying explicitly if /lib is not linked to /usr/lib. Also we don't need preinst anymore and the message is in postinst as well. --- debian/install | 1 - debian/preinst | 8 -------- 2 files changed, 9 deletions(-) delete mode 100644 debian/preinst diff --git a/debian/install b/debian/install index fa422cac8d9..2d4cc6e1a7f 100644 --- a/debian/install +++ b/debian/install @@ -3,7 +3,6 @@ config/profiles.yaml etc/crowdsec/ config/simulation.yaml etc/crowdsec/ config/patterns/* etc/crowdsec/patterns -config/crowdsec.service lib/systemd/system # Referenced configs: cmd/notification-slack/slack.yaml etc/crowdsec/notifications/ diff --git a/debian/preinst b/debian/preinst deleted file mode 100644 index df5b56cef3f..00000000000 --- a/debian/preinst +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -e - -# Source debconf library. -. /usr/share/debconf/confmodule - -echo "You can always run the configuration again interactively by using '/usr/share/crowdsec/wizard.sh -c'"