postinst is in thunderbird 11.0.1+build1-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 | #!/bin/sh
set -e
MOZ_APP_NAME=thunderbird
# Move a conffile without triggering a dpkg question
finish_mv_conffile() {
local OLDCONFFILE="$1"
local NEWCONFFILE="$2"
rm -f $OLDCONFFILE.dpkg-remove
[ -e "$OLDCONFFILE" ] || return 0
echo "Preserving user changes to $NEWCONFFILE (renamed from $OLDCONFFILE)..."
mv -f "$NEWCONFFILE" "$NEWCONFFILE.dpkg-new"
mv -f "$OLDCONFFILE" "$NEWCONFFILE"
}
if [ "$1" = "configure" ] ; then
finish_mv_conffile "/etc/${MOZ_APP_NAME}/pref/thunderbird.js" "/etc/${MOZ_APP_NAME}/syspref.js"
# Bug 933951 - Make the addon manager think that we updated lightning
if dpkg --compare-versions "$2" le-nl "11.0~b2+build2-0ubuntu2" && [ -d /usr/lib/xul-ext/lightning ]; then
touch /usr/lib/xul-ext/lightning
fi
fi
|