postinst is in juju-core 1.18.1-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 | #!/bin/sh
set -e
VER="1.18.1"
base_dir="/usr/lib"
case "$1" in
configure)
update-alternatives --install /usr/bin/juju juju $base_dir/juju-$VER/bin/juju 30 \
--slave /usr/bin/jujud jujud $base_dir/juju-$VER/bin/jujud \
--slave /usr/share/man/man1/juju.1 juju.1 $base_dir/juju-$VER/man/man1/juju.1 \
--slave /usr/bin/juju-metadata juju-metadata $base_dir/juju-$VER/bin/juju-metadata \
--slave /usr/bin/juju-restore juju-restore $base_dir/juju-$VER/bin/juju-restore \
--slave /usr/bin/juju-backup juju-backup $base_dir/juju-$VER/bin/juju-backup
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 0
;;
esac
exit 0
|