diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-07 17:12:44 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-07 17:12:44 -0700 |
commit | 4e213e1a8148d755bb3921cae3caee847901b54e (patch) | |
tree | f37b994d3040b439a933dea0e7335b82f3164dce /debian | |
parent | f7798694b590a0fee79790cc482d688e095cec5b (diff) | |
download | vyatta-cfg-system-4e213e1a8148d755bb3921cae3caee847901b54e.tar.gz vyatta-cfg-system-4e213e1a8148d755bb3921cae3caee847901b54e.zip |
purge any old entries from sudoers
Make sure to cleanup any leftover vyatta entries
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 3 |
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 |