#!/bin/sh -e
if [ ! -e /var/lib/perlmoo/db.pl ]; then
	su daemon -c perlmoo-initdb
	echo <<__eof__

It's important to set a wizard password now so others can't get into your
server. The wizard's password is equivilant to the root password of a unix
system -- with the wizard password, a malicious person could perform denial
of service attacks (using up all memory/CPU/disk space) on your system, not
to mention trash your moo's database. So it's important to come up with a
good wizard password.

__eof__
	su daemon -c perlmoo-wizpasswd
else
	su daemon -c perlmoo-dbconvert >/dev/null
fi

#DEBHELPER#
