summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-07 17:12:44 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-07 17:12:44 -0700
commit4e213e1a8148d755bb3921cae3caee847901b54e (patch)
treef37b994d3040b439a933dea0e7335b82f3164dce /debian/vyatta-cfg-system.postinst.in
parentf7798694b590a0fee79790cc482d688e095cec5b (diff)
downloadvyatta-cfg-quagga-4e213e1a8148d755bb3921cae3caee847901b54e.tar.gz
vyatta-cfg-quagga-4e213e1a8148d755bb3921cae3caee847901b54e.zip
purge any old entries from sudoers
Make sure to cleanup any leftover vyatta entries
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 735b28e7..b21437a5 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -31,8 +31,9 @@ if [ "$sysconfdir" != "/etc" ]; then
echo -e "\n%sudo ALL=NOPASSWD: ALL" >> /etc/sudoers
fi
- # cleanup any old entries
+ # cleanup any old entries from previous versions
ed - /etc/sudoers <<EOF
+/### BEGIN VYATTA/,/### END VYATTA/d
/Cmnd_Alias IPTABLE/,/PPPOE_CMDS/d
g/sudo-users/d
g/env_keep+=VYATTA/d