File: postinst

package info (click to toggle)
perlmoo 0.045
  • links: PTS
  • area: main
  • in suites: slink
  • size: 404 kB
  • ctags: 242
  • sloc: perl: 5,211; makefile: 111; sh: 77
file content (19 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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#