postinst is in couchdb-bin 1.6.0-0ubuntu7.
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 | #!/bin/sh -e
case $1 in
configure)
if dpkg --compare-versions "$2" lt-nl 1.2.0-2ubuntu1; then
# Hack to make the upgrade from the 1.0.1 Ubuntu package more correct:
chown root:root /etc/couchdb
chown root:root /etc/couchdb/default.ini
chown -R root:root /etc/couchdb/default.d
chmod 755 /etc/couchdb
chmod 644 /etc/couchdb/default.ini
chmod 755 /etc/couchdb/default.d
fi
;;
esac
|