Use /etc/sudoers.d now that it exists, instead of appending to /etc/sudoers
[invirt/packages/xvm-munin-config.git] / debian / xvm-munin-remote-config.postinst
index e19832a..9b2918a 100755 (executable)
@@ -22,18 +22,10 @@ case "$1" in
     configure)
         # So munin can read the mail log
         adduser munin adm
-        
-        # So munin can sudo to get to postfix queue info
-        cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-### END xvm-munin-config
-EOF
-        
+
         # Install munin plugins that are now configured
         munin-node-configure --suggest --shell | sh
-        
+
         invoke-rc.d munin-node restart
     ;;