all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH docs] pvecm: document modified .bashrc case for ssh
@ 2020-11-12 16:39 Oguz Bektas
  0 siblings, 0 replies; only message in thread
From: Oguz Bektas @ 2020-11-12 16:39 UTC (permalink / raw)
  To: pve-devel

use the snippet from /etc/skel/.bashrc for checking
if session is interactive, if non-interactive return
and do nothing.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
 pvecm.adoc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/pvecm.adoc b/pvecm.adoc
index 3820c17..f7abfcd 100644
--- a/pvecm.adoc
+++ b/pvecm.adoc
@@ -171,6 +171,19 @@ since guest IDs could be conflicting. As a workaround create a backup of the
 guest (`vzdump`) and restore it as a different ID after the node has been added
 to the cluster.
 
+IMPORTANT: SSH is used for inter-node communications through tunneling. If you
+have a custom `.bashrc` or similar file, this would get executed during some API
+calls. To avoid such complications, you can add the following snippet to `/root/.bashrc`
+at the beginning of the file:
+
+----
+# If not running interactively, don't do anything
+case $- in
+    *i*) ;;
+      *) return;;
+esac
+----
+
 Join Node to Cluster via GUI
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
2.20.1




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-12 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 16:39 [pve-devel] [PATCH docs] pvecm: document modified .bashrc case for ssh Oguz Bektas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal