summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/tdebase/debian/tdm-trinity.postrm
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
commit02dc85a95b228b7242b0d11ea35619faad96db03 (patch)
treee161ba877a0720bbdf7818bdec06eb239d8ad271 /ubuntu/precise/tdebase/debian/tdm-trinity.postrm
parent6f2c7dc70e77d2f768d687838b6cc9f7632f609e (diff)
downloadtde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.tar.gz
tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.zip
Split precise from maverick
Diffstat (limited to 'ubuntu/precise/tdebase/debian/tdm-trinity.postrm')
-rw-r--r--ubuntu/precise/tdebase/debian/tdm-trinity.postrm38
1 files changed, 38 insertions, 0 deletions
diff --git a/ubuntu/precise/tdebase/debian/tdm-trinity.postrm b/ubuntu/precise/tdebase/debian/tdm-trinity.postrm
new file mode 100644
index 000000000..3dfb32123
--- /dev/null
+++ b/ubuntu/precise/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