From fcad8b8d150fb9f508973e3044a103de74ec3877 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 3 Apr 2019 23:02:46 +0900 Subject: DEB: use _base folder for a distro instead of specific distros (squeeze and maverick). Signed-off-by: Michele Calgaro --- ubuntu/_base/tdebase/debian/tdm-trinity.postrm | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ubuntu/_base/tdebase/debian/tdm-trinity.postrm (limited to 'ubuntu/_base/tdebase/debian/tdm-trinity.postrm') diff --git a/ubuntu/_base/tdebase/debian/tdm-trinity.postrm b/ubuntu/_base/tdebase/debian/tdm-trinity.postrm new file mode 100644 index 000000000..3dfb32123 --- /dev/null +++ b/ubuntu/_base/tdebase/debian/tdm-trinity.postrm @@ -0,0 +1,38 @@ +#! /bin/sh -e + +case "$1" in + purge) + rm -rf /var/log/tdm-trinity.log* + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ]; then + # roll back displacement of default display manager file + if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then + # FIXME - redo this part uses shell-lib.sh from xfree86 + #observe "rolling back change of default X display manager" + mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE" + fi +fi + +if [ "$1" = "purge" ]; then + for DIR in /var/lib/tdm-trinity; do + if [ -d "$DIR" ]; then + rm -rf "$DIR" + fi + done + rm -f /var/log/tdm-trinity.log* +fi + +#DEBHELPER# + +exit 0 -- cgit v1.2.1