chiark / gitweb /
Typo fix.
[disorder] / debian / config.disorder-server
1 #!/bin/sh
2 #
3 # Copyright (C) 2004-2008 Richard Kettlewell
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 #
18
19 set -e
20
21 . /usr/share/debconf/confmodule
22
23 # If we don't have any preconception about the local character encoding then
24 # try to use the system one.
25 db_get disorder/encoding || true
26 if test "x$RET" = x; then
27   eval `locale -k charmap`
28   db_set disorder/encoding "$charmap"
29 fi
30
31 db_input high disorder/roots || true
32 db_input high disorder/encoding || true
33 db_input high disorder/port || true
34 db_input medium disorder/scratches || true
35 db_input high disorder/mail_sender || true
36 db_input high disorder/interface || true
37 db_go || true
38
39 db_get disorder/interface || true
40 interface="$RET"
41
42 if test "x$interface" = xnetwork; then
43   db_input high disorder/mcast_address || true
44   db_input high disorder/mcast_port || true
45   db_go || true
46 fi