postinst is in juju-0.7 0.7-0ubuntu2.
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 44 45 46 47 48 49 50 | #!/bin/sh
set -e
VER="0.7"
base_dir="/usr/lib"
case "$1" in
configure)
update-alternatives --force --install /usr/bin/juju juju $base_dir/juju-$VER/bin/juju 20 \
--slave /usr/share/man/man1/juju.1.gz juju.1.gz $base_dir/juju-$VER/man/man1/juju.1.gz \
--slave /usr/bin/open-port open-port $base_dir/juju-$VER/bin/open-port \
--slave /usr/share/man/man1/open-port.1.gz open-port.1.gz $base_dir/juju-$VER/man/man1/open-port.1.gz \
--slave /usr/bin/close-port close-port $base_dir/juju-$VER/bin/close-port \
--slave /usr/share/man/man1/close-port.1.gz close-port.1.gz $base_dir/juju-$VER/man/man1/close-port.1.gz \
--slave /usr/bin/config-get config-get $base_dir/juju-$VER/bin/config-get \
--slave /usr/share/man/man1/config-get.1.gz config-get.1.gz $base_dir/juju-$VER/man/man1/config-get.1.gz \
--slave /usr/bin/relation-list relation-list $base_dir/juju-$VER/bin/relation-list \
--slave /usr/share/man/man1/relation-list.1.gz relation-list.1.gz $base_dir/juju-$VER/man/man1/relation-list.1.gz \
--slave /usr/bin/unit-get unit-get $base_dir/juju-$VER/bin/unit-get \
--slave /usr/share/man/man1/unit-get.1.gz unit-get.1.gz $base_dir/juju-$VER/man/man1/unit-get.1.gz \
--slave /usr/bin/juju-admin juju-admin $base_dir/juju-$VER/bin/juju-admin \
--slave /usr/share/man/man1/juju-admin.1.gz juju-admin.1.gz $base_dir/juju-$VER/man/man1/juju-admin.1.gz \
--slave /usr/bin/relation-ids relation-ids $base_dir/juju-$VER/bin/relation-ids \
--slave /usr/share/man/man1/relation-ids.1.gz relation-ids.1.gz $base_dir/juju-$VER/man/man1/relation-ids.1.gz \
--slave /usr/bin/juju-log juju-log $base_dir/juju-$VER/bin/juju-log \
--slave /usr/share/man/man1/juju-log.1.gz juju-log.1.gz $base_dir/juju-$VER/man/man1/juju-log.1.gz \
--slave /usr/bin/relation-get relation-get $base_dir/juju-$VER/bin/relation-get \
--slave /usr/share/man/man1/relation-get.1.gz relation-get.1.gz $base_dir/juju-$VER/man/man1/relation-get.1.gz \
--slave /usr/bin/relation-set relation-set $base_dir/juju-$VER/bin/relation-set \
--slave /usr/share/man/man1/relation-set.1.gz relation-set.1.gz $base_dir/juju-$VER/man/man1/relation-set.1.gz \
--slave /etc/bash_completion.d/juju juju-bash-completion $base_dir/juju-$VER/etc/bash_completion.d/juju
;;
abort-upgrade|abort-remove|abort-deconfigure)
echo "$1"
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 0
;;
esac
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p juju-0.7
fi
# End automatically added section
exit 0
|