summaryrefslogtreecommitdiff
path: root/debian/preinst
blob: cae702e7a22c2d91f87530e2435ff6b2b41b4a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

case $1 in
	install|upgrade)
		# needed for the postgresql-testsuite
		if ! grep -q '^ru_RU' /etc/locale.gen ; then
			cat >> /etc/locale.gen <<EOF
en_US.UTF-8 UTF-8
ru_RU ISO-8859-5
ru_RU.UTF-8 UTF-8
EOF
		fi
		echo 'LANG=en_US.UTF-8' > /etc/default/locale
		;;
esac

#DEBHELPER#