postinst is in freetds-common 0.91-6.1build1.
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 16 17 | #!/bin/sh
set -e
# If /etc/freetds has been removed, this is a special case, probably
# caused by purging a previous libct version. Unconditionally restore
# freetds.conf in this case.
if [ ! -d /etc/freetds ]; then
mkdir /etc/freetds
cp -a /usr/share/freetds/freetds.conf /etc/freetds/
fi
# Install a reasonable default on initial config
if [ -z "$2" ] && [ ! -e /etc/freetds/freetds.conf ]; then
cp -a /usr/share/freetds/freetds.conf /etc/freetds/
fi
|