preinst is in dbconfig-common 2.0.4ubuntu1.
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 | #!/bin/sh
set -e
# rather sensitive data can go here, so let's create the logfile
# ahead of time with safer permissions.
if [ ! -d /var/log/dbconfig-common ]; then
mkdir /var/log/dbconfig-common
touch /var/log/dbconfig-common/dbc.log
chmod 600 /var/log/dbconfig-common/dbc.log
fi
|