1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/databases/couchdb/pkg-deinstall
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

16 lines
261 B
Bash

#!/bin/sh
RMDIR=/bin/rmdir
COUCH_DBDIR=/var/db/couchdb
COUCH_LOGDIR=/var/log/couchdb
COUCH_RUNDIR=/var/run/couchdb
if [ "$2" = "POST-DEINSTALL" ]; then
for i in ${COUCH_RUNDIR} ${COUCH_DBDIR} ${COUCH_LOGDIR}; do
${RMDIR} ${i} 2>/dev/null
done
fi
exit 0