File: config

package info (click to toggle)
cgiemail 1.6-31
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 320 kB
  • ctags: 114
  • sloc: ansic: 1,520; makefile: 135; sh: 34
file content (28 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (6)
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/bash
CONFIG="/etc/cgiemail.conf"
set -e
# use debconf
. /usr/share/debconf/confmodule

# get configuration value
if [ -f $CONFIG ];
then
	. $CONFIG || true;
	db_set cgiemail/template_dir "$templatedir"
fi


if dpkg --compare-versions "$2" lt-nl 1.6-13;
then
	# if upgrading from an older version
	db_input critical cgiemail/template_dir || true;
else 
	# if installing new or upgrading from recent.
	db_input medium cgiemail/template_dir || true;
fi

db_go || true


#DEBHELPER#