postinst is in couchdb 1.0.1-0ubuntu18.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh -e
# Copyright 2009, Noah Slater <nslater@tumbolia.org>
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and this
# notice are preserved.
VERSION=1.0.1
case $1 in
configure)
mkdir -p /var/lib/couchdb/"${VERSION}"
mkdir -p /var/log/couchdb
chown -R couchdb:couchdb /var/lib/couchdb
chown -R couchdb:couchdb /var/log/couchdb
chmod 0770 /var/lib/couchdb /var/lib/couchdb/"${VERSION}"
chmod 0770 /var/log/couchdb
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/couchdb" ]; then
if [ ! -e "/etc/init/couchdb.conf" ]; then
update-rc.d couchdb defaults >/dev/null
fi
invoke-rc.d couchdb start || exit $?
fi
# End automatically added section
|