deb: Move post-remove cleanup to the pre-remove script.
This commit is contained in:
parent
7f1ed4dbf9
commit
f733aba833
3 changed files with 10 additions and 15 deletions
|
@ -15,14 +15,22 @@ set -e
|
|||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
SBINDIR=@SBINDIR@
|
||||
pyprefix=@pyprefix@
|
||||
pythondir=@pythondir@
|
||||
|
||||
core_daemon_stop()
|
||||
{
|
||||
if [ -x /etc/init.d/core-daemon ]; then
|
||||
/etc/init.d/core-daemon stop
|
||||
fi
|
||||
|
||||
if [ -x @SBINDIR@/core-cleanup ]; then
|
||||
@SBINDIR@/core-cleanup
|
||||
if [ -x $SBINDIR/core-cleanup ]; then
|
||||
$SBINDIR/core-cleanup
|
||||
fi
|
||||
|
||||
if [ -d $pythondir/core ]; then
|
||||
find $pythondir/core -name '*.pyc' -delete
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue