mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-04 08:10:53 +00:00
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
This commit is contained in:
1 parent
83eb8218f2
commit
39ff40ccb8
3 files changed
+12
-2
No files matched your search
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [0.11.17] - 2026-03-14
|
||||
|
||||
### Fixed
|
||||
|
||||
- 🌐 **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))
|
||||
|
||||
## [0.11.16] - 2026-03-13
|
||||
|
||||
### Removed
|
||||
|
||||
+5
-1
@@ -64,7 +64,11 @@ fi
|
||||
# Auto-install Python packages
|
||||
if [ -n "${OPEN_TERMINAL_PIP_PACKAGES:-}" ]; then
|
||||
echo "Installing pip packages: $OPEN_TERMINAL_PIP_PACKAGES"
|
||||
pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
|
||||
if [ "${OPEN_TERMINAL_MULTI_USER:-false}" = "true" ]; then
|
||||
sudo pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
|
||||
else
|
||||
pip install --no-cache-dir $OPEN_TERMINAL_PIP_PACKAGES
|
||||
fi
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "open-terminal"
|
||||
version = "0.11.16"
|
||||
version = "0.11.17"
|
||||
description = "A remote terminal API."
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
|
||||
Reference in new issue
Block a user