#!/bin/sh set -e MOZ_APP_NAME=@MOZ_APP_NAME@ # 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" } %%ifdef MOZ_NEW_SYSPREF if [ "$1" = "configure" ] ; then finish_mv_conffile "/etc/${MOZ_APP_NAME}/pref/thunderbird.js" "/etc/${MOZ_APP_NAME}/syspref.js" fi %%endif #DEBHELPER#