File: postrm

package info (click to toggle)
dnscvsutil 0.5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 80 kB
  • ctags: 35
  • sloc: perl: 557; makefile: 71; sh: 64
file content (15 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

STATEDIR=/var/lib/dnscvsutil

case "$1" in
        purge)
                [ -d "$STATEDIR/domains" ] && rm -rf "$STATEDIR/domains"
                [ -d "$STATEDIR/compiled" ] && rm -rf "$STATEDIR/compiled"
		[ -d "$STATEDIR" ] && chown -R root.root /var/lib/dnscvsutil
                groupdel dnsadmin
                ;;
        *)
                ;;
esac