File: postgresql.preinst

package info (click to toggle)
postgresql 7.5.22
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 56 kB
  • sloc: sh: 168; makefile: 21
file content (12 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

#DEBHELPER#

[ "$1" = install -a "$2" ] || [ "$1" = upgrade ] || exit 0

[ -x /etc/init.d/postgresql ] && /etc/init.d/postgresql stop || true

# Create a 7.4 cluster configuration directory to prevent postgresql-7.4 from
# creating a main cluster.
mkdir -p /etc/postgresql/7.4/main
touch /etc/postgresql/7.4/main/postgresql.conf