diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-04-30 14:08:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-04-30 21:56:26 +0000 |
commit | 564c50804f12fcfe922c0a70318f41dd1a132ffa (patch) | |
tree | ba8e9b6debefd7d14a20a9fb15e8bd3551316f4b /lib | |
parent | Updating documentation for systemd-networkd. (diff) | |
download | compute-tools-564c50804f12fcfe922c0a70318f41dd1a132ffa.tar.xz compute-tools-564c50804f12fcfe922c0a70318f41dd1a132ffa.zip |
Actually passing through SSH_CLIENT variable to enable powerline-prompt in container enter command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | libexec/container/enter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/container/enter b/libexec/container/enter index 604d714..f1dae7f 100755 --- a/libexec/container/enter +++ b/libexec/container/enter @@ -111,7 +111,7 @@ done SSH_CLIENT="${SSH_CLIENT:-127.0.0.1 0 0}" # Run -nsenter --all --target "${LEADER}" --wd="${MACHINES}/${NAME}/root" /usr/bin/script -c "LC_ALL=C.UTF-8 /bin/bash -l" -q /dev/null +nsenter --all --target "${LEADER}" --wd="${MACHINES}/${NAME}/root" /usr/bin/script -c "LC_ALL=C.UTF-8 SSH_CLIENT=\"${SSH_CLIENT}\" /bin/bash -l" -q /dev/null case "${SSH_CLIENT}" in 127.0.0.1*) |