#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.4 2003/06/23 19:11:11 sturm Exp $
#
# postgresql de-installation

set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
PGPREFIX=/var/postgresql

echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "|           userdel -r _postgresql"
echo "|           groupdel _postgresql"
echo "|"
echo "| If you selected a different username to _postgresql, then replace"
echo "| it above as appropriate"
echo "|"
echo "| DO NOT do this if you want to keep your data and/or plan on"
echo "| re-installing or upgrading the $1 package at some"
echo "| future time."
echo "+---------------"
echo

exit 0
