projects
/
invirt/packages/xvm-munin-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a variable to xvm-munin-remote-config.init that std-init expects
[invirt/packages/xvm-munin-config.git]
/
debian
/
xvm-munin-console-config.postinst
diff --git
a/debian/xvm-munin-console-config.postinst
b/debian/xvm-munin-console-config.postinst
index
e19832a
..
c992d7f
100755
(executable)
--- a/
debian/xvm-munin-console-config.postinst
+++ b/
debian/xvm-munin-console-config.postinst
@@
-23,6
+23,9
@@
case "$1" in
# So munin can read the mail log
adduser munin adm
# 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
# So munin can sudo to get to postfix queue info
cat >>/etc/sudoers <<EOF
### BEGIN xvm-munin-config