File: config

package info (click to toggle)
im 1%3A149-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,292 kB
  • ctags: 343
  • sloc: perl: 8,078; sh: 1,791; makefile: 142
file content (28 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh -e

. /usr/share/debconf/confmodule
db_version 2.0

if [ -f /etc/mailname ] ; then
  IM_DOMAIN_DEBCONF=`cat /etc/mailname`
else
  IM_DOMAIN_DEBCONF=`/bin/dnsdomainname`
fi

db_input medium im/rpop || true
db_input medium im/siteconfig_by_hand || true
db_go

db_get im/siteconfig_by_hand
if [ "$RET" = "false" ]; then
  db_set im/fromdomain $IM_DOMAIN_DEBCONF
  db_input low im/fromdomain || true

  db_set im/todomain $IM_DOMAIN_DEBCONF
  db_input low im/todomain || true

  db_input low im/organization || true

  db_input medium im/use_maildir || true
fi
db_go