aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql95-server/pkg-install-server
blob: a2a25643778a587e63a9c577e847b305ddd25b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

PATH=/bin:/usr/bin:/usr/sbin

backupwarning() {
cat <<EOF

  =========== BACKUP YOUR DATA! =============
  As always, backup your data before
  upgrading. If the upgrade leads to a higher
  minor revision (e.g. 8.3.x -> 8.4), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!

  Press ctrl-C *now* if you need to pg_dump.
  ===========================================
EOF
	sleep 5
}

case $2 in
PRE-INSTALL)
	backupwarning
	;;
esac