File: avahi-autoipd.postrm

package info (click to toggle)
avahi 0.6.32-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,888 kB
  • sloc: ansic: 39,999; sh: 6,219; xml: 4,433; cs: 2,185; makefile: 1,705; python: 310; cpp: 222
file content (17 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = "purge" ]; then
    deluser --quiet --system avahi-autoipd > /dev/null || true
    delgroup --quiet --system avahi-autoipd > /dev/null || true
    # Cleanup /var/lib/avahi-autoipd, see #527925
    f=/var/lib/avahi-autoipd
    if [ -d "$f" ]; then
        rm -f "$f"/??\:??\:??\:??\:??\:??
        rmdir "$f" || { chown root:root "$f" && chmod 00700 "$f"; }
    fi
fi