diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 04:46:00 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 04:46:00 +0700 |
commit | 410023fd604af49434ed5039c99c7ee6abc99b20 (patch) | |
tree | 74e703e1d778db8ace3796c3d1fdf528b302abe7 /debian/vyatta-cfg-system.postrm | |
download | vyatta-conntrack-410023fd604af49434ed5039c99c7ee6abc99b20.tar.gz vyatta-conntrack-410023fd604af49434ed5039c99c7ee6abc99b20.zip |
Initial commit.debian/0.1
Diffstat (limited to 'debian/vyatta-cfg-system.postrm')
-rw-r--r-- | debian/vyatta-cfg-system.postrm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postrm b/debian/vyatta-cfg-system.postrm new file mode 100644 index 0000000..413780b --- /dev/null +++ b/debian/vyatta-cfg-system.postrm @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ "$1" = "purge" ]; then + sed -i -e '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers + sed -i -e 'g/^password/d' /etc/pam.d/password + update-rc.d vyatta-config-reboot-params remove +fi + +# Local Variables: +# mode: shell-script +# sh-indentation: 4 +# End: |