postinst is in unity-2d-common 5.10.0-0ubuntu1.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/bin/sh
set -e
signal_daemons()
{
# Tell all running daemons to reload their databases
pkill -HUP -x gconfd-2 >/dev/null 2>&1 || true
}
case "$1" in
configure|upgrade)
if which update-gconf-defaults >/dev/null 2>&1 ; then
mkdir -p /var/lib/gconf/ubuntu-2d.mandatory
mkdir -p /var/lib/gconf/ubuntu-2d.default
fi
;;
triggered)
for trigger in $2; do
case $trigger in
/usr/share/gconf/ubuntu-2d/mandatory)
update-gconf-defaults --source /usr/share/gconf/ubuntu-2d/mandatory \
--destination /var/lib/gconf/ubuntu-2d.mandatory --no-signal
;;
/usr/share/gconf/ubuntu-2d/default)
update-gconf-defaults --source /usr/share/gconf/ubuntu-2d/default \
--destination /var/lib/gconf/ubuntu-2d.default --no-signal
;;
esac
done
signal_daemons
exit 0
;;
esac
# Upon installation/upgrade, regenerate all databases, because in this case
# there will be no trigger run
update-gconf-defaults --source /usr/share/gconf/ubuntu-2d/mandatory \
--destination /var/lib/gconf/ubuntu-2d.mandatory --no-signal
update-gconf-defaults --source /usr/share/gconf/ubuntu-2d/default \
--destination /var/lib/gconf/ubuntu-2d.default --no-signal
signal_daemons
|