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
Divert /etc/conserver/console.cf in the right binary package.
[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
9f4b5a8
..
d2c7c08
100755
(executable)
--- a/
debian/invirt-console-host.postinst
+++ b/
debian/invirt-console-host.postinst
@@
-20,9
+20,6
@@
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_*