login.postinstd remove cruft (closes: #989712)

This commit is contained in:
Helmut Grohne
2021-08-20 14:37:49 +02:00
committed by Johannes Schauer Marin Rodrigues
parent cfc17bfaa7
commit d19ac3ae86

25
debian/login.postinst vendored
View File

@@ -2,18 +2,6 @@
set -e
if test "$1" = configure
then
if test -f /etc/init.d/logoutd
then
if test "$(md5sum /etc/init.d/logoutd)" = "9080f92783dd53f6f2108e698c06bd53 /etc/init.d/logoutd"
then
echo "removing logoutd cruft"
rm /etc/init.d/logoutd
update-rc.d logoutd remove
fi
fi
fi
if [ "$1" = "configure" ]; then
# Install faillog during initial installs only
@@ -37,19 +25,6 @@ if [ "$1" = "configure" ]; then
fi
fi
# Create subuid/subgid if missing
if [ ! -e /etc/subuid ]; then
touch /etc/subuid
chown root:root /etc/subuid
chmod 644 /etc/subuid
fi
if [ ! -e /etc/subgid ]; then
touch /etc/subgid
chown root:root /etc/subgid
chmod 644 /etc/subgid
fi
#DEBHELPER#
exit 0