File: shibboleth-sp2-utils.postrm

package info (click to toggle)
shibboleth-sp2 2.6.0%2Bdfsg1-4%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,896 kB
  • sloc: cpp: 39,404; sh: 11,726; makefile: 866; xml: 371; ansic: 35
file content (14 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if [ "$1" = purge ]; then
    for dir in /var/cache/shibboleth /var/log/shibboleth; do
        if dpkg-statoverride --list "$dir" >/dev/null 2>&1; then
            dpkg-statoverride --remove "$dir"
        fi
        rm -rf "$dir"
    done
fi

#DEBHELPER#