[Ovirt-devel] [PATCH node] add anyterm / virsh sudoers rule in same way other files are appended

Mohammed Morsi mmorsi at redhat.com
Tue Aug 4 14:52:47 UTC 2009


---
 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




More information about the ovirt-devel mailing list