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.
This commit is contained in:
mmetc 2025-01-20 14:16:01 +01:00 committed by GitHub
parent d6b3841f13
commit e1a1b1e565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 9 deletions

1
debian/install vendored
View file

@ -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/

8
debian/preinst vendored
View file

@ -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'"