File: audispd-plugins.postinst

package info (click to toggle)
audit 1%3A4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,864 kB
  • sloc: ansic: 56,478; sh: 4,998; python: 2,169; makefile: 1,496; sed: 32
file content (15 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# postinst script for audispd-plugins
#
# see: dh_installdeb(1)

set -e

#DEBHELPER#

if [ "$1" = configure ] && dpkg --compare-versions "$2" le-nl "1:3.0~alpha9-1~"; then
	rmdir --ignore-fail-on-non-empty /etc/audisp/plugins.d 2> /dev/null || true
	rmdir --ignore-fail-on-non-empty /etc/audisp 2> /dev/null || true
fi

exit 0