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
|
#!/bin/sh
set -e
#PKGOS-INCLUDE#
if [ "$1" = "remove" ] ; then
# We need to delete symlinks which are created in postinst dynamically
# This have to be done in prerm.
rm -f /usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.d
rm -f /usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.py
# If this is a symlink, we should remove it ASAP (it should be a folder
# where plugins install their files).
if [ -L /usr/lib/python3/dist-packages/openstack_dashboard/local/enabled ]; then
rm -f /usr/lib/python3/dist-packages/openstack_dashboard/local/enabled || true
fi
rm -f /usr/lib/python3/dist-packages/openstack_dashboard/themes
rm -f /usr/lib/python3/dist-packages/openstack_dashboard/conf
fi
#DEBHELPER#
exit 0
|