1 |
#! /bin/sh |
2 |
|
3 |
# $FreeBSD: head/databases/postgresql10-server/pkg-install-server 421360 2016-09-05 11:15:29Z girgen $ |
4 |
|
5 |
PATH=/bin:/usr/bin:/usr/sbin |
6 |
|
7 |
backupwarning() { |
8 |
cat <<EOF |
9 |
|
10 |
=========== BACKUP YOUR DATA! ============= |
11 |
As always, backup your data before |
12 |
upgrading. If the upgrade leads to a higher |
13 |
minor revision (e.g. 8.3.x -> 8.4), a dump |
14 |
and restore of all databases is |
15 |
required. This is *NOT* done by the port! |
16 |
=========================================== |
17 |
EOF |
18 |
} |
19 |
|
20 |
case $2 in |
21 |
PRE-INSTALL) |
22 |
backupwarning |
23 |
;; |
24 |
esac |