openbsd-ports/databases/postgresql/pkg/DEINSTALL

26 lines
554 B
Bash

#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1 1999/11/11 02:13:42 kevlo Exp $
#
# postgresql de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
PGPREFIX=/var/pgsql
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| rm -rf ${PGPREFIX}"
echo "| rmuser pgsql"
echo "|"
echo "| Do not do this if you plan on re-installing postgresql package"
echo "| at some future time."
echo "+---------------"
echo
exit 0