From 05466d6cb7fa1a64df5a2df32e266c9433f56d3a Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Mon, 11 Oct 2021 10:41:53 +0200 Subject: [PATCH] add libevent dependency + fix rsyslog.conf not found in postrm script --- openldap-ltb/debian/control | 2 +- openldap-ltb/debian/openldap-ltb.postrm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openldap-ltb/debian/control b/openldap-ltb/debian/control index c68bce5..b585658 100644 --- a/openldap-ltb/debian/control +++ b/openldap-ltb/debian/control @@ -8,7 +8,7 @@ Homepage: http://ltb-project.org Package: openldap-ltb Architecture: any -Depends: libc6 (>= 2.4), libltdl7, libsasl2-2, libwrap0 (>= 7.6-4~), coreutils (>= 4.5.1-1), perl (>> 5.8.0) | libmime-base64-perl, adduser, lsb-base (>= 3.2-13), openssl, bash-completion, procps +Depends: libc6 (>= 2.4), libltdl7, libsasl2-2, libwrap0 (>= 7.6-4~), coreutils (>= 4.5.1-1), perl (>> 5.8.0) | libmime-base64-perl, adduser, lsb-base (>= 3.2-13), openssl, bash-completion, procps, libevent-2.1-6 | libevent-2.1-7 Suggests: openldap-ltb-check-password, openldap-ltb-contrib-overlays Description: OpenLDAP server with addons from the LDAP Tool Box project OpenLDAP is an open source suite of LDAP (Lightweight Directory Access diff --git a/openldap-ltb/debian/openldap-ltb.postrm b/openldap-ltb/debian/openldap-ltb.postrm index fd01723..9e0b322 100755 --- a/openldap-ltb/debian/openldap-ltb.postrm +++ b/openldap-ltb/debian/openldap-ltb.postrm @@ -3,7 +3,9 @@ set -e # Remove syslog facility -sed -i '/local4\..*/d' /etc/rsyslog.conf +if [ -e "/etc/rsyslog.conf" ]; then + sed -i '/local4\..*/d' /etc/rsyslog.conf +fi # clean remaining started when removing the service if [ "$1" != "upgrade" ]; then