File: postinst

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 (18 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
CONFIG="/etc/cgiemail.conf"
set -e
# use debconf
. /usr/share/debconf/confmodule

if [ ! -e $CONFIG ];
then
	echo "templatedir=" > $CONFIG
fi

db_get cgiemail/template_dir || RET="/var/www/templates/"

echo "templatedir=\"$RET\"" > $CONFIG.tmp
mv -f $CONFIG.tmp $CONFIG

#DEBHELPER#