Debian Codegraph @

debian/freetds-common.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 # If /etc/freetds has been removed, this is a special case, probably
6 # caused by purging a previous libct version. Unconditionally restore
7 # freetds.conf in this case.
8 if [ ! -d /etc/freetds ]; then
9 mkdir /etc/freetds
10 cp -a /usr/share/freetds/freetds.conf /etc/freetds/
11 fi
12
13 # Install a reasonable default on initial config
14
15 if [ -z "$2" ] && [ ! -e /etc/freetds/freetds.conf ]; then
16 cp -a /usr/share/freetds/freetds.conf /etc/freetds/
17 fi
18
19 #DEBHELPER#