postinst is in thunderbird 1:52.7.0+build1-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 | #!/bin/sh
set -e
MOZ_PKG_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_PKG_NAME}/pref/thunderbird.js" "/etc/${MOZ_PKG_NAME}/syspref.js"
fi
|