Displaying 4 results from an estimated 4 matches for "anyterm_cmd".
2009 Aug 03
1
[PATCH node] changed fickle anyterm sysconfig changes to something more robust (revised)
...ions(+), 5 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index af3a257..98e88e7 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -213,11 +213,10 @@ ovirt_setup_libvirtd() {
ovirt_setup_anyterm() {
# configure anyterm
- sed -i -e 's/^# ANYTERM_CMD=\/usr\/bin\/anyterm-cmd/ANYTERM_CMD="sudo \/usr\/bin\/virsh console %p"/' \
- /etc/sysconfig/anyterm
-
- sed -i -e 's/^# ANYTERM_LOCAL_ONLY=true/ANYTERM_LOCAL_ONLY=false/' \
- /etc/sysconfig/anyterm
+ cat >> /etc/sysconfig/anyterm << EOF
+ANYTERM_...
2009 Aug 03
0
[PATCH node] changed fickle anyterm sysconfig changes to something more rebust
...ions(+), 5 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index af3a257..1c7b0c4 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -213,11 +213,10 @@ ovirt_setup_libvirtd() {
ovirt_setup_anyterm() {
# configure anyterm
- sed -i -e 's/^# ANYTERM_CMD=\/usr\/bin\/anyterm-cmd/ANYTERM_CMD="sudo \/usr\/bin\/virsh console %p"/' \
- /etc/sysconfig/anyterm
-
- sed -i -e 's/^# ANYTERM_LOCAL_ONLY=true/ANYTERM_LOCAL_ONLY=false/' \
- /etc/sysconfig/anyterm
+ cat >> /etc/sysconfig/anyterm << EOF
+ ANY...
2011 Jul 25
0
[PATCH node] Drop F15 build recipes
...h_list: gssapi" $sasl_conf ; then
- sed -i -e "s/^\([[:space:]]*mech_list.*\)/#\1/" $sasl_conf
- echo "mech_list: gssapi" >> $sasl_conf
- fi
-
-#ovirt_setup_anyterm()
- # configure anyterm
- cat >> /etc/sysconfig/anyterm << \EOF_anyterm
-ANYTERM_CMD="sudo /usr/bin/virsh console %p"
-ANYTERM_LOCAL_ONLY=false
-EOF_anyterm
-
- # permit it to run the virsh console
- echo "anyterm ALL=NOPASSWD: /usr/bin/virsh console *" >> /etc/sudoers
-
-# rwtab changes from upstream
-patch -d /etc/ -p1 << \EOF_PATCH
-diff --git...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...*mech_list.*\)/#\1/\" %s") % sasl_conf
+ os.system("echo \"mech_list: gssapi\" >> %s") % sasl_conf
+
+def ovirt_setup_anyterm():
+ # configure anyterm
+ anyterm_conf = open("/etc/sysconfig/anyterm", "w")
+ anyterm_conf.write("ANYTERM_CMD=\"sudo /usr/bin/virsh console %p\"")
+ anyterm_conf.write("ANYTERM_LOCAL_ONLY=false")
+ anyterm_conf.close()
+ # permit it to run the virsh console
+ os.system("echo \"anyterm ALL=NOPASSWD: /usr/bin/virsh console *\" >> /etc/sudoers")
+
+#...