ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
fix(update): detect unquoted VIRTUAL_ENV binding in prebuilt venvs
Juan Denis9edb5deb81e3
diff --git a/scripts/update.sh b/scripts/update.shindex 333af46d..2e6b7a51 100644--- a/scripts/update.sh+++ b/scripts/update.sh@@ -649,7 +649,9 @@ require_venv() {# dependencies (and run the OLD flask binary for migrations), so a# venv bound to any other path must be rebuilt in place.local bound_path resolved_bound resolved_target- bound_path="$(sed -n 's/^VIRTUAL_ENV="\(.*\)"$/\1/p' "$target_dir/bin/activate" | head -1)"+ # Matches both VIRTUAL_ENV="/path" (classic venv) and the unquoted+ # export VIRTUAL_ENV=/path form; skips cygpath-style indirection.+ bound_path="$(grep -m1 -oE 'VIRTUAL_ENV="?/[^")]+"?' "$target_dir/bin/activate" | cut -d= -f2- | tr -d '"')"# Compare RESOLVED paths: on a fresh install the symlink already points# at the only slot, so the baked path resolves to the target and the# prebuilt venv is genuinely usable (fast path). During an update it