File: openstack-dashboard.prerm

package info (click to toggle)
horizon 3%3A25.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,016 kB
  • sloc: python: 100,186; javascript: 49,520; sh: 440; makefile: 79
file content (25 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (4)
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