X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/blobdiff_plain/56328c0b20eb97049d9552298ac41f316a445a47..0e3a37c0643ef2fcb17883b78881f63ca16ea459:/debian/xvm-munin-host-config.postinst diff --git a/debian/xvm-munin-host-config.postinst b/debian/xvm-munin-host-config.postinst index ce981db..3dbbeb6 100755 --- a/debian/xvm-munin-host-config.postinst +++ b/debian/xvm-munin-host-config.postinst @@ -23,7 +23,12 @@ 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 cat >>/etc/sudoers <