diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-11-01 00:11:36 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-11-01 00:11:36 +0000 |
commit | 0ca28723fbfb0ed88954e35bf45d7462a40a5178 (patch) | |
tree | 4ab0dde6ed9cb6e40d9d477547ce6363396ec676 /databases/postgresql-server/DEINSTALL | |
parent | 380b33c5710509b50346db575cddab2e83c39c2d (diff) | |
download | pkgsrc-0ca28723fbfb0ed88954e35bf45d7462a40a5178.tar.gz |
Move pkg/ files into package's toplevel directory
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 |