Skip to content

Commit 39ff40c

Browse files
committed
fix: install pip packages globally in multi-user mode
When OPEN_TERMINAL_MULTI_USER=true, OPEN_TERMINAL_PIP_PACKAGES now uses sudo pip install to install to the system-wide site-packages directory instead of /home/user/.local/. This ensures all provisioned users share the same packages without needing to reinstall individually. Closes #68
1 parent 83eb821 commit 39ff40c

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [0.11.17] - 2026-03-14
8+
9+
### Fixed
10+
11+
- 🌐 **Global pip packages in multi-user mode**`OPEN_TERMINAL_PIP_PACKAGES` now installs to the system-wide site-packages (`sudo pip install`) when `OPEN_TERMINAL_MULTI_USER=true`, so all provisioned users share the same packages. Previously, packages were installed to `/home/user/.local/` and only accessible to the default user. ([#68](https://github.com/open-webui/open-terminal/issues/68))
12+
713
## [0.11.16] - 2026-03-13
814

915
### Removed

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ fi
6464
# Auto-install Python packages
6565
if [ -n "${OPEN_TERMINAL_PIP_PACKAGES:-}" ]; then
6666
echo "Installing pip packages: $OPEN_TERMINAL_PIP_PACKAGES"
67-
pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
67+
if [ "${OPEN_TERMINAL_MULTI_USER:-false}" = "true" ]; then
68+
sudo pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
69+
else
70+
pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
71+
fi
6872
fi
6973

7074
# -----------------------------------------------------------------------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "open-terminal"
3-
version = "0.11.16"
3+
version = "0.11.17"
44
description = "A remote terminal API."
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)