postrm is in openstack-dashboard-ubuntu-theme 2:9.0.0-0ubuntu2.
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 | #!/bin/sh
set -e
case "$1" in
remove)
if [ -f /usr/share/openstack-dashboard/manage.py ]; then
(
cd /usr/share/openstack-dashboard
echo "Collecting and compressing static assets..."
rm -rf /usr/share/openstack-dashboard/static/custom/* || :
python manage.py collectstatic --noinput 2>&1 > /dev/null
python manage.py compress --force 2>&1 > /dev/null
)
fi
if [ -x "`which invoke-rc.d 2>/dev/null`" -a -x "/etc/init.d/apache2" ] ; then
invoke-rc.d --quiet apache2 reload
fi
;;
*)
;;
esac
exit 0
|