summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-03-15 09:33:01 -0700
committerStephen Hemminger <shemminger@vyatta.com>2011-03-25 14:20:40 -0700
commitdaca084e916c06ac12f09dd94277a50c4c6fb62b (patch)
treef09675ba1b33ab32518d977e997c98eac2fdd49e
parent26ce4c7ea7ea3277b1986d794bc14027b076b3f5 (diff)
downloadvyatta-cfg-system-daca084e916c06ac12f09dd94277a50c4c6fb62b.tar.gz
vyatta-cfg-system-daca084e916c06ac12f09dd94277a50c4c6fb62b.zip
Remove rsyslog logrotate file
Bug 6715 Vyatta configures syslog, and does not use the same files as Debian (typically). The logrotate file in the distribution assumes there are files like auth.log etc which Vyatta doesn't have. (cherry picked from commit 4c15e64167ee8408ef2d9f8f186644665ac0d588)
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 475ae699..1b9752d3 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -30,6 +30,9 @@ if [ -d /etc/udev/rules.d/ ]; then
rm -f /etc/udev/rules.d/*vyatta-net.rules
fi
+# Remove rsyslog logrotate since it has hardcoded assumptions about syslog files
+rm -f /etc/logrotate.d/rsyslog
+
# Force screenblanker to be off, it can be enabled later if desired
if [ -f /etc/console-tools/config ]; then
sed -i -e '/^POWERDOWN/s/=.*$/=0/' \