Use /etc/sudoers.d now that it exists, instead of appending to /etc/sudoers
[invirt/packages/xvm-munin-config.git] / debian / xvm-munin-master-config.postinst
index 721e584..2b8dfdf 100755 (executable)
@@ -22,15 +22,7 @@ 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
-        
+
         # So munin can read from the database
         su postgres -c 'createuser -S -D -R munin' || true
         su postgres -c 'psql invirt --quiet' <<EOF