1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/databases/couchdb/pkg-install
Chris Rees bf5bbb00fa - Update to 1.2.0
- OPTIONSngify

- Error out on build if older version installed with config file present; this
  must be backed up or it will be lost on deinstall.

- Shift default DB storage location from /var/lib/couchdb to
  /var/db/couchdb to make it consistent with other DB storage engine ports
  which use /var/db as their base (eg; mySQL).

PR:		ports/168923
Submitted by:	Adam Strohl <adams-ports@ateamsystems.com>
Approved by:	maintainer timeout (till@php.net, >14 days)
2012-07-02 21:31:27 +00:00

21 lines
452 B
Bash

#!/bin/sh
COUCH_USER=couchdb
COUCH_GROUP=couchdb
CHOWN=/usr/sbin/chown
MKDIR="/bin/mkdir -p"
COUCH_DBDIR=/var/db/couchdb
COUCH_LOGDIR=/var/log/couchdb
COUCH_RUNDIR=/var/run/couchdb
if [ "$2" = "POST-INSTALL" ]; then
${MKDIR} ${COUCH_DBDIR} ${COUCH_LOGDIR} ${COUCH_RUNDIR}
${CHOWN} ${COUCH_USER}:${COUCH_GROUP} ${COUCH_DBDIR}
${CHOWN} ${COUCH_USER}:${COUCH_GROUP} ${COUCH_LOGDIR}
${CHOWN} ${COUCH_USER}:${COUCH_GROUP} ${COUCH_RUNDIR}
fi
exit 0