Mohammed Morsi
2009-Aug-04 14:52 UTC
[Ovirt-devel] [PATCH node] add anyterm / virsh sudoers rule in same way other files are appended
--- scripts/ovirt-functions | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 98e88e7..fd86606 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -219,7 +219,9 @@ ANYTERM_LOCAL_ONLY=false EOF # permit it to run the virsh console - echo "anyterm ALL=NOPASSWD: /usr/bin/virsh console *" >> /etc/sudoers + cat >> /etc/sudoers << EOF +anyterm ALL=NOPASSWD: /usr/bin/virsh console * +EOF } md5() { -- 1.6.0.6