~ubuntu-branches/debian/lenny/freetds/lenny

« back to all changes in this revision

Viewing changes to debian/freetds-common.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-08-02 11:49:53 UTC
  • mfrom: (2.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802114953-0qdeowgl63k42n2c
Tags: 0.82-4
* Fix a typo in the freetds-common description, ugh
* Versioned replaces of libct4 by freetds-common, since the current one
  obviously doesn't have overlapping files.
* tdsodbc: check for /var/lib/odbc existence before removing it in the
  postinst, since there are cases where it won't exist on upgrade (i.e.,
  if the driver was never enabled in the first place).  Closes: #493303.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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#