opnsense-ports/databases/postgresql10-server/pkg-install-server
Franco Fichtner f5d1e7df9a */*: sync with upstream
Taken from: HardenedBSD
2017-08-14 15:10:54 +02:00

24 lines
437 B
Bash

#! /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
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!
===========================================
EOF
}
case $2 in
PRE-INSTALL)
backupwarning
;;
esac