aboutsummaryrefslogblamecommitdiff
path: root/databases/postgresql12-server/pkg-install-server
blob: d4dcb95ca9a4da2a1ad8e0bb5ec7a362db56b7a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                             
                                         

                                           
                                                            








                                             
#! /bin/sh

# $FreeBSD$

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
  major revision (e.g. 9.6 -> 10), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!
  See https://www.postgresql.org/docs/current/upgrading.html
  ===========================================
EOF
}

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