postinst is in ubuntu-kylin-software-center 1.3.14.
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 | #!/bin/sh
#if [ "$1" = "configure" ] ; then
# PKILL=$(which pkill)
# PGREP=$(which pgrep)
#
# if [ -f '/usr/share/ubuntu-kylin-software-center/.uksc_self_upgrade' ] ; then
# echo 'install by uksc'
# rm /usr/share/ubuntu-kylin-software-center/.uksc_self_upgrade
# else
# echo 'install by apt'
# FLAG=`$PGREP -f ubuntu-kylin-software-center.py`
# if [ -n "$FLAG" ] ; then
# $PKILL -f -9 ubuntu-kylin-software-center.py
# fi
# FLAG=`$PGREP -f ubuntu-kylin-software-center-daemon`
# if [ -n "$FLAG" ] ; then
# $PKILL -f -9 ubuntu-kylin-software-center-daemon
# fi
# fi
#fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p ubuntu-kylin-software-center /usr/share/ubuntu-kylin-software-center -V 2.7-
fi
# End automatically added section
|