summaryrefslogtreecommitdiff
path: root/debian/passwd.postinst
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2020-04-18 09:03:08 +0000
committerNiels Thykier <niels@thykier.net>2020-04-18 09:03:48 +0000
commitfe2a40ab85c2d7df29ac1e104bfdf3ef3109373e (patch)
tree1177044aa6be9dd07886673dabe74b5254e78a05 /debian/passwd.postinst
parentc7baab653470fe217a76e7821913bec2426a3d62 (diff)
downloadshadow-fe2a40ab85c2d7df29ac1e104bfdf3ef3109373e.tar.gz
Remove obsolete code from passwd maintscripts
The transitional behaviour was complete before oldoldstable and is no longer relevant. Moving this snippet will eventually enable us to remove the preinst for passwd completely (when the /etc/cron.daily/passwd removal is complete). This will both reduce the total number of maintscripts and also enable us to simplify deployment DPKG_ROOT (the InstallBootstrap spec). * https://wiki.debian.org/Teams/Dpkg/Spec/InstallBootstrap Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'debian/passwd.postinst')
-rw-r--r--debian/passwd.postinst14
1 files changed, 0 insertions, 14 deletions
diff --git a/debian/passwd.postinst b/debian/passwd.postinst
index 691733e8..f6d52210 100644
--- a/debian/passwd.postinst
+++ b/debian/passwd.postinst
@@ -4,20 +4,6 @@ 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 || (