File: freetds-common.postinst

package info (click to toggle)
freetds 0.82-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 10,716 kB
  • ctags: 8,697
  • sloc: ansic: 74,312; sh: 8,868; makefile: 815; perl: 556; php: 22
file content (19 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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

#DEBHELPER#