HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/freetds-common.postinst
#!/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