File: rsyslog.postrm

package info (click to toggle)
rsyslog 8.2302.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,980 kB
  • sloc: ansic: 112,474; sh: 36,403; makefile: 4,284; lex: 560; python: 535; yacc: 191; perl: 162; sql: 103; tcl: 9; ruby: 2
file content (13 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ "$1" = "remove" ]; then
	[ -f /etc/logrotate.d/rsyslog ] && mv -f /etc/logrotate.d/rsyslog /etc/logrotate.d/rsyslog.disabled
fi

if [ "$1" = "purge" ] || [ "$1" = "disappear" ]; then
	[ -f /etc/logrotate.d/rsyslog.disabled ] && rm -f /etc/logrotate.d/rsyslog.disabled
fi

#DEBHELPER#