File: config

package info (click to toggle)
ssmtp 2.50.6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 720 kB
  • ctags: 111
  • sloc: ansic: 1,596; sh: 326; makefile: 116
file content (47 lines) | stat: -rwxr-xr-x 753 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -e
#
# $Id: config,v 1.7 2001/04/16 12:09:00 matt Exp $
#

. /usr/share/debconf/confmodule

db_input medium ssmtp/overwriteconfig || true
db_go

db_get ssmtp/overwriteconfig || true
OverwriteConfig="${RET:-true}"

if test "$OverwriteConfig" = "true"
then
	db_input medium ssmtp/root || true
	db_go

	db_input medium ssmtp/mailhub || true
	db_go

	db_input low ssmtp/port || true
	db_go
fi

if test -s /etc/mailname
then
	ETC_MAILNAME="ExistsAndNotZeroBytes"
fi

if test -z "$ETC_MAILNAME" -o "$OverwriteConfig" = "true"
then
	db_input medium ssmtp/rewritedomain || true
	db_go

	db_input low ssmtp/hostname || true
	db_go
fi

if test "$OverwriteConfig" = "true"
then
	db_input medium ssmtp/fromoverride || true
	db_go
fi

# Program End
exit 0