aboutsummaryrefslogblamecommitdiff
path: root/databases/postgresql84-server/pkg-install-server
blob: 6f41226305d748d56d2f29d17b89bb9d664184e2 (plain) (tree)
1
2
3
4
5
6
7
8
9

          
           
 
                            
 

                 
 


                                             
                                            




                                             
   



               
            

                     
    
#! /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