* rsyslog now depends on logrotate * package now installs a logrotate config for rsyslog (via usher)
29 lines
462 B
Bash
Executable File
29 lines
462 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
if [ ! -f /etc/rsyslog.conf ]; then
|
|
cp /usr/share/rsyslog/rsyslog.conf /etc/rsyslog.conf
|
|
fi
|
|
|
|
if [ ! -f /etc/logrotate.d/rsyslog ]; then
|
|
cp /usr/share/rsyslog/rsyslog.logrotate /etc/logrotate.d/rsyslog
|
|
fi
|
|
|
|
/etc/init.d/rsyslog status 2>&1 > /dev/null && /etc/init.d/rsyslog restart
|
|
|
|
exit 0
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|