File: config

package info (click to toggle)
im 1%3A151-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,464 kB
  • sloc: perl: 8,081; sh: 3,254; makefile: 139
file content (28 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (4)
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=`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