From aa90ccba3ff56ffbdf67e15d2cdbfb02021d9834 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 23 Oct 2021 16:29:25 +0200 Subject: [PATCH] Do not fail the postinst if chown/chmod are failing (Closes: #926237) --- debian/changelog | 1 + debian/postinst | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 260d1d64..2fbef8b8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,7 @@ fail2ban (0.11.2-3) unstable; urgency=medium * Fix the watch file * Fix the roundcube debian custom path (Closes: #988323) Thanks to Kurt Fitzner for the patch + * Do not fail the postinst if chown/chmod are failing (Closes: #926237) -- Sylvestre Ledru Sat, 23 Oct 2021 16:09:47 +0200 diff --git a/debian/postinst b/debian/postinst index 1abd69f9..c9a608f5 100755 --- a/debian/postinst +++ b/debian/postinst @@ -25,8 +25,8 @@ case "$1" in LOG=/var/log/fail2ban.log touch $LOG - chown root:adm ${LOG}* - chmod 640 ${LOG}* + chown root:adm ${LOG}* || true + chmod 640 ${LOG}* || true # Note regarding changed configuration file # Note regarding changed configuration file