summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/applications/kde-systemsettings/debian/kde-systemsettings-trinity.preinst
blob: f7b840ea2fad9d8c1f990b4f7157c1ab4b19c37e (plain)
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
#!/bin/sh -e

case "$1" in

    upgrade)

	# Remove wrong previous used file/dir:
	FILE="/etc/xdg/menus/kde-applications-merged/system-settings-merge.menu"
	SUBDIR="/etc/xdg/menus/kde-applications-merged"
        if [ ! -L "$SUBDIR" ] && [ -d "$SUBDIR" ]; then
		if [ -f "$FILE" ]; then rm -f "$FILE"; fi
		rmdir --ignore-fail-on-non-empty "$SUBDIR"
	fi
    ;;

    install|abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;

esac

#DEBHELPER#

exit 0