From df4dbd3378e13e9f43c727c36339f078fe3093fe Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 14:50:01 +0200 Subject: Adding debian version 1:4.8.1-1. Signed-off-by: Daniel Baumann --- debian/passwd.postinst | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 debian/passwd.postinst (limited to 'debian/passwd.postinst') diff --git a/debian/passwd.postinst b/debian/passwd.postinst new file mode 100644 index 0000000..691733e --- /dev/null +++ b/debian/passwd.postinst @@ -0,0 +1,44 @@ +#!/bin/sh + +set -e + +case "$1" in +configure) + # Fix permissions on various log files from old versions of the debian + # installer, some unrelated to passwd but we decided to put the fix + # here since there was no better place. This can safely be removed + # after etch is released. + if dpkg --compare-versions "$2" lt "1:4.0.14-9"; then + for log in /var/log/base-config* \ + $(find /var/log/debian-installer/ /var/log/installer/ -type f 2>/dev/null ); do + if [ -e "$log" ]; then + chmod 600 "$log" + fi + done + fi + + rm -f /etc/pam.d/passwd.pre-upgrade 2>/dev/null + if ! getent group shadow | grep -q '^shadow:[^:]*:42' + then + groupadd -g 42 shadow || ( + cat <