We don't need to remove the code from sudoers in the xvm-munin-config
authorEvan Broder <broder@mit.edu>
Wed, 26 Nov 2008 04:16:01 +0000 (23:16 -0500)
committerEvan Broder <broder@mit.edu>
Wed, 26 Nov 2008 04:16:01 +0000 (23:16 -0500)
postinst - the preinst will get run on upgrade

svn path=/trunk/packages/xvm-munin-config/; revision=1781

debian/changelog
debian/xvm-munin-console-config.postinst
debian/xvm-munin-host-config.postinst
debian/xvm-munin-master-config.postinst
debian/xvm-munin-remote-config.postinst

index da21f63..56ccf75 100644 (file)
@@ -7,8 +7,10 @@ xvm-munin-config (0.0.5) unstable; urgency=low
 
   [ Evan Broder ]
   * Move the unnecessary Pre-Depends to a Depends
+  * We don't need to remove the code from sudoers in the postinst - the
+    preinst will get run on upgrade
 
- -- Evan Broder <broder@mit.edu>  Tue, 25 Nov 2008 23:13:36 -0500
+ -- Evan Broder <broder@mit.edu>  Tue, 25 Nov 2008 23:14:07 -0500
 
 xvm-munin-config (0.0.4) unstable; urgency=low
 
index c992d7f..e19832a 100755 (executable)
@@ -23,9 +23,6 @@ case "$1" in
         # So munin can read the mail log
         adduser munin adm
         
-        # First clear out the old stuff we threw in /etc/sudoers
-        perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
-        
         # So munin can sudo to get to postfix queue info
         cat >>/etc/sudoers <<EOF
 ### BEGIN xvm-munin-config
index 3dbbeb6..f8e86d6 100755 (executable)
@@ -23,9 +23,6 @@ case "$1" in
         # So munin can read the mail log
         adduser munin adm
         
-        # First clear out the old stuff we threw in /etc/sudoers
-        perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
-        
         # So munin can sudo to get to postfix queue info
         # and smartctl info
         # and info about running domains
index 407cbef..721e584 100755 (executable)
@@ -23,9 +23,6 @@ case "$1" in
         # So munin can read the mail log
         adduser munin adm
         
-        # First clear out the old stuff we threw in /etc/sudoers
-        perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
-        
         # So munin can sudo to get to postfix queue info
         cat >>/etc/sudoers <<EOF
 ### BEGIN xvm-munin-config
index c992d7f..e19832a 100755 (executable)
@@ -23,9 +23,6 @@ case "$1" in
         # So munin can read the mail log
         adduser munin adm
         
-        # First clear out the old stuff we threw in /etc/sudoers
-        perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
-        
         # So munin can sudo to get to postfix queue info
         cat >>/etc/sudoers <<EOF
 ### BEGIN xvm-munin-config