File: syslog-ng.preinst

package info (click to toggle)
syslog-ng 2.0.0-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,844 kB
  • ctags: 2,014
  • sloc: ansic: 9,125; xml: 2,125; sh: 1,210; yacc: 741; lex: 278; makefile: 191; awk: 94; python: 85; perl: 49
file content (14 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# install from config-files state
if [ "$1" = "install" -a -n "$2" ] ; then
  # reactivate disabled logrotate-configs from prior install.
  # main file
  [ -f /etc/logrotate.d/syslog-ng.disabled ] && mv -f /etc/logrotate.d/syslog-ng.disabled /etc/logrotate.d/syslog-ng
fi

#DEBHELPER#

exit 0