#!/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#

