ACCC1380 commited on
Commit
c245ddf
1 Parent(s): 6d924f1

Upload var/lib/dpkg/info/adduser.config with huggingface_hub

Browse files
Files changed (1) hide show
  1. var/lib/dpkg/info/adduser.config +41 -0
var/lib/dpkg/info/adduser.config ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # if we do not have debconf, we just skip this
5
+ . /usr/share/debconf/confmodule || exit 0
6
+
7
+ db_version 2.0
8
+ db_capb
9
+ db_settitle adduser/title
10
+
11
+ # For testing
12
+ #db_fset adduser/homedir-permission isdefault true
13
+
14
+ if [ -e "/etc/adduser.conf" ]; then
15
+ CUR_DIRMODE=`cat /etc/adduser.conf | sed -ne 's/^DIR_MODE=\(.*\)$/\1/p;'` || true
16
+ fi
17
+
18
+ if [ -z "$CUR_DIRMODE" ]
19
+ then
20
+ CUR_DIRMODE="0755" # this is adduser's default
21
+ fi
22
+
23
+ if [ "$CUR_DIRMODE" = "0755" ] || [ "$CUR_DIRMODE" = "755" ]
24
+ then
25
+ db_set adduser/homedir-permission true
26
+ elif [ "$CUR_DIRMODE" = "0751" ] || [ "$CUR_DIRMODE" = "751" ]
27
+ then
28
+ db_set adduser/homedir-permission false
29
+ else
30
+ CHANGED=1
31
+ fi
32
+
33
+ if [ -z "$CHANGED" ]
34
+ then
35
+ db_unregister adduser/homedir-changed || true
36
+ db_input medium adduser/homedir-permission || true
37
+ db_go || true
38
+ else
39
+ db_register adduser/homedir-permission adduser/homedir-changed || true
40
+ db_set adduser/homedir-changed true || true
41
+ fi