File debian.mailtrace-daemon.postinst of Package mailtrace
#!/bin/bash # mailtrace-daemon postinstall script set -e # insserv works like this on debian, but not on ubuntu if [ ! -f /etc/lsb-release ];then insserv /etc/init.d/mailtraced fi #sed -i "s/database=mysql/database=mysql\ndbtype=mysql/" /etc/mailtrace/mailtraced.cfg