diff options
Diffstat (limited to 'databases/postgresql-server/DEINSTALL')
-rw-r--r-- | databases/postgresql-server/DEINSTALL | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/databases/postgresql-server/DEINSTALL b/databases/postgresql-server/DEINSTALL new file mode 100644 index 00000000000..78f834b41c8 --- /dev/null +++ b/databases/postgresql-server/DEINSTALL @@ -0,0 +1,56 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/11/01 00:12:41 zuntum Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +USER="@PGUSER@" +GROUP="@PGGROUP@" +PGHOME="@PGHOME@" + +CAT="@CAT@" +RM="@RM@" + +case ${STAGE} in +DEINSTALL) + ${CAT} << EOF +=========================================================================== + +If you intend to upgrade your PostgreSQL installation, you may need to +perform a dump-and-restore to move your current databases into the newer +PostgreSQL installation. Please dump your databases *prior* to installing +the new PostgreSQL. + +Please see the Backup and Restore section of the PostgreSQL Administrator's +Guide (databases/postgresql-docs) for complete information on how to +perform the databases dump. + +=========================================================================== +EOF + ;; + +POST-DEINSTALL) + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want +to remove: + + * the \`${USER}' user + + * the \`${GROUP}' group + + * the following directories: + + ${PGHOME} +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |