File: spf-milter-python.postrm

package info (click to toggle)
pymilter 0.8.9-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 928 kB
  • ctags: 559
  • sloc: python: 3,605; ansic: 978; sh: 316; makefile: 46
file content (25 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
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
#!/bin/sh

set -e

if [ "$1" = "purge" ] ; then
  for dir in /etc/spf-milter-python/ /var/log/spf-milter-python; do
    if [ -d "$dir" ]; then
      rmdir "$dir" --ignore-fail-on-non-empty || true
    fi
  done

  if [ -x "/usr/sbin/userdel" ]; then
    userdel spf-milter-python || true
  fi
  if [ -x "/usr/sbin/groupdel" ]; then 
    groupdel spf-milter-python || true
  fi

fi


#DEBHELPER#

exit 0