File: deluged.postrm

package info (click to toggle)
deluge 1.3.15-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 20,756 kB
  • ctags: 3,121
  • sloc: python: 22,201; sh: 141; makefile: 22
file content (28 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (4)
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
27
28
#!/bin/sh

set -e

remove_overrides()
{
  for filename in "$@"; do
    if dpkg-statoverride --list "$filename" >/dev/null 2>&1; then
      dpkg-statoverride --remove "$filename"
    fi
  done
}

case "$1" in
  purge)
    rm -f /var/log/deluged/*
    rm -rf /var/lib/deluged/config/*

    remove_overrides /var/log/deluged /var/lib/deluged /var/lib/deluged/config

    deluser --system --quiet debian-deluged >/dev/null || true
    delgroup --system --quiet debian-deluged >/dev/null || true
    ;;
esac

#DEBHELPER#

exit 0;