From 3d8888c70266f612d1f427a112cc1e2155c19584 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:00:48 +0200 Subject: Adding debian version 2.6.1. Signed-off-by: Daniel Baumann --- debian/apt.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 debian/apt.postinst (limited to 'debian/apt.postinst') diff --git a/debian/apt.postinst b/debian/apt.postinst new file mode 100755 index 0000000..54a0770 --- /dev/null +++ b/debian/apt.postinst @@ -0,0 +1,15 @@ +#! /bin/sh +set -e + +if [ "$1" = 'configure' ] && [ -z "$DPKG_ROOT" ] && ! getent passwd _apt >/dev/null; then + # add unprivileged user for the apt methods + adduser --force-badname --system --home /nonexistent \ + --no-create-home --quiet _apt || true +fi + +if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions -- "$2" le-nl "2.4.5~"; then + rm -f /etc/apt/apt.conf.d/01autoremove-kernels +fi + + +#DEBHELPER# -- cgit v1.2.3