File: motion.postrm

package info (click to toggle)
motion 4.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,120 kB
  • sloc: ansic: 26,435; makefile: 105; sh: 79
file content (26 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (3)
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
26
#!/bin/sh

set -e

case "$1" in
    purge)
        rm -rf /var/log/motion/
        rm -rf /var/lib/motion/
        rm -rf /var/run/motion/

        if [ -x "$(command -v deluser)" ]; then
           deluser --quiet --system motion > /dev/null || true
        else
           echo >&2 "not removing motion system account because deluser command was not found"
        fi
      ;;
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
esac

#DEBHELPER#

exit 0