ACCC1380 commited on
Commit
6afe8a5
1 Parent(s): fe501c4

Upload var/lib/dpkg/info/passwd.postinst with huggingface_hub

Browse files
Files changed (1) hide show
  1. var/lib/dpkg/info/passwd.postinst +57 -0
var/lib/dpkg/info/passwd.postinst ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ case "$1" in
6
+ configure)
7
+ # Fix permissions on various log files from old versions of the debian
8
+ # installer, some unrelated to passwd but we decided to put the fix
9
+ # here since there was no better place. This can safely be removed
10
+ # after etch is released.
11
+ if dpkg --compare-versions "$2" lt "1:4.0.14-9"; then
12
+ for log in /var/log/base-config* \
13
+ $(find /var/log/debian-installer/ /var/log/installer/ -type f 2>/dev/null ); do
14
+ if [ -e "$log" ]; then
15
+ chmod 600 "$log"
16
+ fi
17
+ done
18
+ fi
19
+
20
+ rm -f /etc/pam.d/passwd.pre-upgrade 2>/dev/null
21
+ if ! getent group shadow | grep -q '^shadow:[^:]*:42'
22
+ then
23
+ groupadd -g 42 shadow || (
24
+ cat <<EOF
25
+ Group ID 42 has been allocated for the shadow group. You have either
26
+ used 42 yourself or created a shadow group with a different ID.
27
+ Please correct this problem and reconfigure with ``dpkg --configure passwd''.
28
+
29
+ Note that both user and group IDs in the range 0-99 are globally
30
+ allocated by the Debian project and must be the same on every Debian
31
+ system.
32
+ EOF
33
+ exit 1
34
+ )
35
+ fi
36
+ ;;
37
+ esac
38
+
39
+ # Run shadowconfig only on new installs
40
+ [ -z "$2" ] && shadowconfig on
41
+
42
+ # Automatically added by dh_installsystemd/12.10ubuntu1
43
+ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
44
+ # In case this system is running systemd, we need to ensure that all
45
+ # necessary tmpfiles (if any) are created before starting.
46
+ if [ -d /run/systemd/system ] ; then
47
+ systemd-tmpfiles --create passwd.conf >/dev/null || true
48
+ fi
49
+ fi
50
+ # End automatically added section
51
+ # Automatically added by dh_installdeb/12.10ubuntu1
52
+ dpkg-maintscript-helper rm_conffile /etc/cron.daily/passwd 1:4.7-2\~ -- "$@"
53
+ dpkg-maintscript-helper rm_conffile /etc/init/passwd.conf 1:4.2-3.2ubuntu4\~ passwd -- "$@"
54
+ # End automatically added section
55
+
56
+
57
+ exit 0