1
0
Fork 0
apt/debian/apt.postinst
Daniel Baumann c7f0765a64
Adding debian version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-20 21:10:44 +02:00

15 lines
423 B
Bash
Executable file

#! /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#