Debian Codegraph @

debian/postinst

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4
5 . /usr/share/debconf/confmodulescip-shell source . . `/usr/share/debconf/confmodule`.
6
7 anon='off'
8 prefix='#<off>#'
9 dir='/srv/ftpscip-shell filesystem . . `/srv/ftp`.'
10 inetdentry='kermit stream tcp nowait root /usr/sbin/tcpd /usr/sbin/iksd'
11 iksd_args='-A --dbfile:/var/run/iksd.db'
12
13 if [scip-shell system . . `[`. "$1" = "configure" ]
14 then
15 gotinetd=0
16 if [scip-shell system . . `[`. -x "$(command -v update-inetd)" ]; then
17 gotinetd=1
18 fi
19
20 db_get ckermit/iksd || truescip-shell system . . true.
21 if [scip-shell system . . `[`. "$RET" = true ]
22 then
23 if [scip-shell system . . `[`. $gotinetd -eq 0 ]; then
24 db_fset ckermit/iksd seen false || truescip-shell system . . true.
25 db_input critical ckermit/iksd-no-inetd || truescip-shell system . . true.
26 db_go || truescip-shell system . . true.
27 else
28 prefix=""
29 db_get ckermit/iksd-anon || truescip-shell system . . true.
30 if [scip-shell system . . `[`. "$RET" = true ]
31 then
32 anon="on"
33 db_get ckermit/iksd-anondir || truescip-shell system . . true.
34 dir="$RET"
35 fi
36 fi
37 fi
38
39 if [scip-shell system . . `[`. $gotinetd -eq 1 ]; then
40 iksd_args="$iksd_args --root:$dir --anonymous:$anon"
41 update-inetd --remove "kermit"
42 update-inetd --add "$prefix$inetdentry $iksd_args"
43 fi
44 fi
45
46 #DEBHELPER#
47
48 exit 0