summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-05 18:12:18 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-05 18:12:18 -0800
commitae49927598cb7e5d18776b277181670f0207d4ad (patch)
tree687f0d4948924148f0c6ed5ffe4c3ef50011f850 /debian
parentdaa2a8f7742c29d72c9237177d8a8649004ed3ac (diff)
downloadvyatta-cfg-system-ae49927598cb7e5d18776b277181670f0207d4ad.tar.gz
vyatta-cfg-system-ae49927598cb7e5d18776b277181670f0207d4ad.zip
remove saved logrotate.d files (to avoid duplicate).
Diffstat (limited to 'debian')
-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 a317354a..6349b748 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -47,6 +47,9 @@ if [ "$sysconfdir" != "/etc" ]; then
# ssh v1. remove the empty key file
rm /etc/ssh/ssh_host_key
+ # remove unnecessary files
+ rm /etc/logrotate.d/*.vyatta-save >& /dev/null
+
# quagga/daemons
sed 's/=no/=yes/' /etc/quagga/daemons.vyatta-save > /etc/quagga/daemons
fi