File: config

package info (click to toggle)
im 1%3A153-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,476 kB
  • sloc: perl: 8,172; sh: 3,333; makefile: 140
file content (30 lines) | stat: -rw-r--r-- 574 bytes parent folder | download
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
29
30
#!/bin/sh

set -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