summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorRick Balocca <rbalocca@vyatta.com>2008-07-30 12:39:23 -0700
committerRick Balocca <rbalocca@vyatta.com>2008-07-30 12:39:23 -0700
commit3f03d4b94ff781aee561343a872a59ced68f0bf2 (patch)
tree785e1430089a4703861ca2baa223808722d46ded /debian/vyatta-cfg-system.postinst.in
parentc7e46403008ba169b262d24f90e12aaa30d98074 (diff)
downloadvyatta-cfg-system-3f03d4b94ff781aee561343a872a59ced68f0bf2.tar.gz
vyatta-cfg-system-3f03d4b94ff781aee561343a872a59ced68f0bf2.zip
Fix for http://bugzilla.vyatta.com/show_bug.cgi?id=3225
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 109e59d1..0dd6248f 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -33,13 +33,12 @@ if [ "$sysconfdir" != "/etc" ]; then
fi
# cleanup any old entries from previous versions
- ed /etc/sudoers >&/dev/null <<EOF
-/### BEGIN VYATTA/,/### END VYATTA/d
-/Cmnd_Alias IPTABLE/,/PPPOE_CMDS/d
-g/sudo-users/d
-g/env_keep+=VYATTA/d
-wq
-EOF
+ sed -i /etc/sudoers \
+ -e '/### BEGIN VYATTA/,/### END VYATTA/d' \
+ -e '/Cmnd_Alias IPTABLE/,/PPPOE_CMDS/d' \
+ -e '/sudo-users/d' \
+ -e '/env_keep+=VYATTA/d' || true
+
# Add Vyatta entries
cat <<"EOF" >>/etc/sudoers
### BEGIN VYATTA