postinst is in ubuntukylin-default-settings 1.4.4.
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 | #!/bin/sh
set -e
FILE_MD5SUM=47d621d5a840d525a1663c12b2ab9e50
FILE_PATH=/etc/apt/sources.list.d
FILE_NAME=ubuntukylin.list
DISTRIBUTION_FILE=/usr/lib/firefox/distribution/distribution.ini
DISTRIBUTION_UBUNTU=/usr/lib/firefox/distribution/distribution.ini.ubuntu-defaults
if [ "$1" = configure ]; then
md5sum ${FILE_PATH}/*.list 2>/dev/null | grep -v ${FILE_NAME} | grep ${FILE_MD5SUM} | awk '{print $2}' | xargs rm -f
fi
if [ -e $DISTRIBUTION_FILE ]; then
mv $DISTRIBUTION_FILE $DISTRIBUTION_UBUNTU
fi
|