File: pacemaker-common.postrm

package info (click to toggle)
pacemaker 2.0.1-5%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 55,644 kB
  • sloc: xml: 130,752; ansic: 96,958; python: 5,692; sh: 4,852; makefile: 1,082
file content (25 lines) | stat: -rw-r--r-- 603 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
    # keep this list in sync with that in the postinst
    for dir in \
        /var/lib/pacemaker/pengine \
        /var/lib/pacemaker/cib \
        /var/lib/pacemaker/cores \
        /var/lib/pacemaker/blackbox \
        /var/log/pacemaker/bundles \
        /var/log/pacemaker \
	; do
        if dpkg-statoverride --list "$dir" >/dev/null 2>&1; then
            dpkg-statoverride --remove "$dir"
        fi
        rm -rf "$dir"
    done
    # remove the AUTHKEY we created in postinst
    AUTHKEY=/etc/pacemaker/authkey
    rm -f $AUTHKEY
fi

#DEBHELPER#