projects
/
invirt/packages/invirt-console.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add conserver-server to -console-server's dependencies.
[invirt/packages/invirt-console.git]
/
debian
/
invirt-console-host.postinst
diff --git
a/debian/invirt-console-host.postinst
b/debian/invirt-console-host.postinst
index
d2c7c08
..
9f4b5a8
100755
(executable)
--- a/
debian/invirt-console-host.postinst
+++ b/
debian/invirt-console-host.postinst
@@
-20,6
+20,9
@@
set -e
case "$1" in
configure)
case "$1" in
configure)
+ # Clean up the old sudoers line before we add it back
+ perl -i.bak -ne 's%^### (BEGIN|END) invirt-console-host\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
+
cat >>/etc/sudoers <<EOF
### BEGIN invirt-console-host
conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console d_*
cat >>/etc/sudoers <<EOF
### BEGIN invirt-console-host
conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console d_*