4 if dpkg-maintscript-helper supports mv_conffile; then
5 dpkg-maintscript-helper mv_conffile \
7 /etc/lightdm/lightdm.conf \
11 if [ "$1" = "purge" ] ; then
12 rm -f /etc/lightdm.conf
14 if [ -d /var/log/lightdm ]; then
15 rm -r /var/log/lightdm
18 if [ -d /var/cache/lightdm ]; then
19 rm -r /var/cache/lightdm
22 if [ -d /var/run/lightdm/authority ]; then
23 rm -r /var/run/lightdm/authority
26 if getent passwd lightdm >/dev/null; then
27 if [ -x /usr/sbin/deluser ]; then
28 deluser --system lightdm
32 if getent group lightdm >/dev/null; then
33 if [ -x /usr/sbin/delgroup ]; then
34 delgroup --system lightdm
38 # we cannot use the --remove-home option when we delete the user above
39 # because it will refuse to remove things in /var, so clean it up this
41 if [ -d /var/lib/lightdm ]; then
42 rm -r /var/lib/lightdm