aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql90-server/pkg-install-server
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2011-10-18 09:03:33 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2011-10-18 09:03:33 +0000
commitd9a60ff20fdef5ff2634ff38096cc7c163b9eca3 (patch)
treebd78806842ec28ab44892af2bfb4d697751facd0 /databases/postgresql90-server/pkg-install-server
parent81a42c07f79717291fbfabe574233f8328458403 (diff)
downloadports-d9a60ff20fdef5ff2634ff38096cc7c163b9eca3.tar.gz
ports-d9a60ff20fdef5ff2634ff38096cc7c163b9eca3.zip
Notes
Diffstat (limited to 'databases/postgresql90-server/pkg-install-server')
-rw-r--r--databases/postgresql90-server/pkg-install-server27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/postgresql90-server/pkg-install-server b/databases/postgresql90-server/pkg-install-server
new file mode 100644
index 000000000000..6f41226305d7
--- /dev/null
+++ b/databases/postgresql90-server/pkg-install-server
@@ -0,0 +1,27 @@
+#! /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. 7.3.x -> 7.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