summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postrm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-04 13:06:19 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-04 13:09:44 -0700
commit28b7618bf24ea745d5d7e5a287de1aa728111d08 (patch)
treed56beadd76a99fa795c8ccb939393c9115c3419d /debian/vyatta-cfg-system.postrm
parent1fb175a266e45828a5588e2f44660c2a70057bf0 (diff)
downloadvyatta-cfg-system-28b7618bf24ea745d5d7e5a287de1aa728111d08.tar.gz
vyatta-cfg-system-28b7618bf24ea745d5d7e5a287de1aa728111d08.zip
Modify upgrade procedure for /etc/sudoers
0) make backup of file 1) remove old glendale entries 2) put all vyatta entries in one block 3) remove vyatta entries on package removal
Diffstat (limited to 'debian/vyatta-cfg-system.postrm')
-rw-r--r--debian/vyatta-cfg-system.postrm3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postrm b/debian/vyatta-cfg-system.postrm
index d668f55d..46ec1aaa 100644
--- a/debian/vyatta-cfg-system.postrm
+++ b/debian/vyatta-cfg-system.postrm
@@ -2,6 +2,9 @@
if [ "$1" = "purge" ]; then
rm -f /etc/udev/rules.d/*vyatta-net.rules
+
+ sed -i '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers
+
fi
# Local Variables: