postinst is in colord 0.1.16-2.
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 | #!/bin/sh
set -e
case "$1" in
configure)
# create the scanner group if it isn't already there
addgroup --quiet --system scanner
# ensure /var/lib/colord exists...
mkdir -p /var/lib/colord
# ...create colord user if it isn't already there...
adduser --system --group --home /var/lib/colord colord \
--quiet --gecos "colord colour management daemon"
# ...finally, ensure /var/lib/colord has the right permissions
chown -R colord:colord /var/lib/colord
;;
esac
exit 0
|