Upload var/lib/dpkg/info/login.postinst with huggingface_hub
Browse files
var/lib/dpkg/info/login.postinst
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
|
3 |
+
set -e
|
4 |
+
|
5 |
+
if test "$1" = configure
|
6 |
+
then
|
7 |
+
if test -f /etc/init.d/logoutd
|
8 |
+
then
|
9 |
+
if test "$(md5sum /etc/init.d/logoutd)" = "9080f92783dd53f6f2108e698c06bd53 /etc/init.d/logoutd"
|
10 |
+
then
|
11 |
+
echo "removing logoutd cruft"
|
12 |
+
rm /etc/init.d/logoutd
|
13 |
+
update-rc.d logoutd remove
|
14 |
+
fi
|
15 |
+
fi
|
16 |
+
fi
|
17 |
+
rm -f /etc/pam.d/login.pre-upgrade 2>/dev/null
|
18 |
+
|
19 |
+
if [ "$1" = "configure" ]; then
|
20 |
+
# Install faillog during initial installs only
|
21 |
+
if [ "$2" = "" ] && [ ! -f /var/log/faillog ] ; then
|
22 |
+
touch /var/log/faillog
|
23 |
+
chown root:root /var/log/faillog
|
24 |
+
chmod 644 /var/log/faillog
|
25 |
+
fi
|
26 |
+
|
27 |
+
# Create subuid/subgid if missing
|
28 |
+
if [ ! -e /etc/subuid ]; then
|
29 |
+
touch /etc/subuid
|
30 |
+
chown root:root /etc/subuid
|
31 |
+
chmod 644 /etc/subuid
|
32 |
+
fi
|
33 |
+
|
34 |
+
if [ ! -e /etc/subgid ]; then
|
35 |
+
touch /etc/subgid
|
36 |
+
chown root:root /etc/subgid
|
37 |
+
chmod 644 /etc/subgid
|
38 |
+
fi
|
39 |
+
fi
|
40 |
+
|
41 |
+
# Create subuid/subgid if missing
|
42 |
+
if [ ! -e /etc/subuid ]; then
|
43 |
+
touch /etc/subuid
|
44 |
+
chown root:root /etc/subuid
|
45 |
+
chmod 644 /etc/subuid
|
46 |
+
fi
|
47 |
+
|
48 |
+
if [ ! -e /etc/subgid ]; then
|
49 |
+
touch /etc/subgid
|
50 |
+
chown root:root /etc/subgid
|
51 |
+
chmod 644 /etc/subgid
|
52 |
+
fi
|
53 |
+
|
54 |
+
# Automatically added by dh_installdeb/12.10ubuntu1
|
55 |
+
dpkg-maintscript-helper rm_conffile /etc/securetty 1:4.7-1\~ -- "$@"
|
56 |
+
# End automatically added section
|
57 |
+
|
58 |
+
|
59 |
+
exit 0
|