lxc patch 2

This commit is contained in:
2026-04-11 09:41:24 -04:00
parent 23d93b709b
commit 18c6972b23
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ fi
lxc-start -n "$CONTAINER" 2>/dev/null || true
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
exec lxc-attach -n "$CONTAINER" -- /bin/bash -c "$SSH_ORIGINAL_COMMAND"
exec lxc-attach -n "$CONTAINER" -- /bin/bash -c "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin; $SSH_ORIGINAL_COMMAND"
else
exec lxc-attach -n "$CONTAINER" -- /bin/login -f root
fi