1#! /bin/sh 2 3PATH=/bin:/usr/bin:/usr/sbin 4 5backupwarning() { 6cat <<EOF 7 8 =========== BACKUP YOUR DATA! ============= 9 As always, backup your data before 10 upgrading. If the upgrade leads to a higher 11 major revision (e.g. 9.6 -> 10), a dump 12 and restore of all databases is 13 required. This is *NOT* done by the port! 14 See https://www.postgresql.org/docs/current/upgrading.html 15 =========================================== 16EOF 17} 18 19case $2 in 20PRE-INSTALL) 21 backupwarning 22 ;; 23esac 24