summaryrefslogtreecommitdiff
path: root/databases/postgresql90-server/pkg-install-server
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-12-19 21:12:36 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-12-19 21:12:36 +0000
commit616aaf4b1fc83a87f7a49e0e81e8f7c9db6dbcad (patch)
treeeca5ff8ef89030731d682a14daebcc8cbd2245ac /databases/postgresql90-server/pkg-install-server
parent- Fix modes of the temp directory [1] (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_1_0'.release/7.1.0
Notes
Notes: svn path=/head/; revision=224474 svn path=/tags/RELEASE_7_1_0/; revision=224475; tag=release/7.1.0
Diffstat (limited to 'databases/postgresql90-server/pkg-install-server')
-rw-r--r--databases/postgresql90-server/pkg-install-server63
1 files changed, 0 insertions, 63 deletions
diff --git a/databases/postgresql90-server/pkg-install-server b/databases/postgresql90-server/pkg-install-server
deleted file mode 100644
index 6dc3b6fdbd67..000000000000
--- a/databases/postgresql90-server/pkg-install-server
+++ /dev/null
@@ -1,63 +0,0 @@
-#! /bin/sh
-
-# $FreeBSD$
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-backupwarning() { echo "
-
- =========== BACKUP YOUR DATA! =============
- As always, backup your data before
- upgrading. If the upgrade leads to a higher
- minor revision (e.g. 7.3.x -> 7.4), a dump
- and restore of all databases is
- required. This is *NOT* done by the port!
-
- Press ctrl-C *now* if you need to pg_dump.
- ===========================================
-"
- sleep 5
-}
-
-case $2 in
-PRE-INSTALL)
- backupwarning
- PGUSER=${PGUSER:-pgsql}
- PGGROUP=${PGGROUP:-pgsql}
- DB_DIR=${PKG_PREFIX}/${PGUSER}
- UID=70
- GID=70
-
- if pw group show "${PGGROUP}" 2>/dev/null; then
- echo "You already have a group \"${PGGROUP}\", so I will use it."
- else
- if pw groupadd ${PGGROUP} -g ${GID}; then
- echo "Added group \"${PGGROUP}\"."
- else
- echo "Adding group \"${PGGROUP}\" failed..."
- exit 1
- fi
- fi
-
- if pw user show "${PGUSER}" 2>/dev/null; then
- echo "You already have a user \"${PGUSER}\", so I will use it."
- else
- if pw useradd ${PGUSER} -u ${UID} -g ${PGGROUP} -h - \
- -d ${DB_DIR} -c "PostgreSQL Daemon"
- then
- echo "Added user \"${PGUSER}\"."
- else
- echo "Adding user \"${PGUSER}\" failed..."
- exit 1
- fi
- fi
-
- if ! [ -x ~${PGUSER} ] ; then
- install -m 755 -o ${PGUSER} -g ${PGGROUP} -d ${DB_DIR}
- fi
- ;;
-
-BACKUPWARNING)
- backupwarning
- ;;
-esac