source: pkg/main/gdm/trunk/debian/gdm.postrm @ 2296

Revision 2296, 850 bytes checked in by alanbach-guest, 6 years ago (diff)

gdm reset

Line 
1#!/bin/sh
2
3if [ "$1" = "purge" ] ; then
4        update-rc.d gdm remove >/dev/null
5        rm -f /etc/default/gdm
6        if [ -d /etc/gdm ]; then
7                rmdir --ignore-fail-on-non-empty /etc/gdm/Init /etc/gdm/PreSession /etc/gdm/PostSession /etc/gdm/PostLogin /etc/gdm/Sessions /etc/gdm 2>/dev/null
8        fi
9        if [ -d /var/lib/gdm ]; then
10                rm -r /var/lib/gdm
11        fi
12        if [ -d /var/log/gdm ]; then
13                rm -r /var/log/gdm
14        fi
15        if getent passwd gdm >/dev/null; then
16                if [ -x /usr/sbin/deluser ]; then
17                        deluser --system gdm
18                fi
19        fi
20        if getent group gdm >/dev/null; then
21                if [ -x /usr/sbin/delgroup ]; then
22                        delgroup --system gdm
23                fi
24        fi
25fi
26#DEBHELPER#
27exit 0
Note: See TracBrowser for help on using the repository browser.