This file is indexed.

postinst is in ratbox-services-sqlite 1.2.4-1ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/bin/sh

set -e

DATABASE=/etc/ratbox-services/ratbox-services.db
SCHEMA=/usr/share/ratbox-services/lib/schema-sqlite.sql

if [ ! -e $DATABASE ] ; then
	echo -n "Creating $DATABASE"
	# Assuming some admin deleted the directory...
	mkdir -p /etc/ratbox-services
	sqlite3 $DATABASE < $SCHEMA
	chown irc:irc $DATABASE
	echo "."
fi