HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
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