diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 09:59:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 09:59:38 +0000 |
commit | ff83fcf9b9090b4ce27b3566f74a12a78bf07a10 (patch) | |
tree | 810db5b9e99a40e5cb043761770f2b8960109f83 /debian/apt.postinst | |
parent | Adding upstream version 2.7.12. (diff) | |
download | apt-ff83fcf9b9090b4ce27b3566f74a12a78bf07a10.tar.xz apt-ff83fcf9b9090b4ce27b3566f74a12a78bf07a10.zip |
Adding debian version 2.7.12.debian/2.7.12
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/apt.postinst')
-rwxr-xr-x | debian/apt.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
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# |