From 429d8d4a8862eebc560d47df2314cf48c25f1ac6 Mon Sep 17 00:00:00 2001 From: Clive Lin Date: Thu, 15 Mar 2001 07:23:08 +0000 Subject: Fix problems when installing postgresql7 with pkg_add: - pkg-install used wrong uid# - chown lib dir *after* it is created - pkg-install created data dir where Makefile didn't - add pkg-deinstall and remove user & group - don't chown data dir, since we don't create it anymore - spell and documentation fixes in the rc.d script PR: ports/25817 Submitted by: MAINTAINER --- databases/postgresql-devel-server/pkg-deinstall | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 databases/postgresql-devel-server/pkg-deinstall (limited to 'databases/postgresql-devel-server/pkg-deinstall') diff --git a/databases/postgresql-devel-server/pkg-deinstall b/databases/postgresql-devel-server/pkg-deinstall new file mode 100644 index 000000000000..9e1fa3121dc0 --- /dev/null +++ b/databases/postgresql-devel-server/pkg-deinstall @@ -0,0 +1,12 @@ +#!/bin/sh + +# remove postgresql users + +case $2 in + +POST-DEINSTALL) + pw groupdel pgsql + pw userdel pgsql + ;; + +esac -- cgit v1.2.3