Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies
- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162) - pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE - health check: show the service log when an HTTP check fails - update.sh: the "before" version comes from deploy.state - migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing - docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT - tests: new test for the section parameter, fixed test_server_process.py Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1bbf9b7cc1
commit
79c950f8f7
14 files changed
+156
-38
No files matched your search
@@ -279,7 +279,11 @@ main() {
|
||||
else
|
||||
warn "no state file ($STATE_FILE): this installation was not made by install.sh; it is adopted and recorded after a successful update. Files that these scripts do not manage (init scripts, nginx site, doas file) are left as they are"
|
||||
fi
|
||||
OLD_VERSION=$(cat "$PREFIX/VERSION" 2>/dev/null || echo "unknown")
|
||||
# The version "before": deploy.state first (VERSION in a git-based install directory may already be the new one)
|
||||
OLD_VERSION=""
|
||||
[ ! -f "$STATE_FILE" ] || OLD_VERSION=$(state_get OVPMON_VERSION 2>/dev/null || true)
|
||||
[ -n "$OLD_VERSION" ] || OLD_VERSION=$(cat "$PREFIX/VERSION" 2>/dev/null || true)
|
||||
[ -n "$OLD_VERSION" ] || OLD_VERSION="unknown"
|
||||
|
||||
for _f in APP_CORE/openvpn_api_v3.py APP_CORE/openvpn_gatherer_v3.py APP_CORE/migrate.py APP_CORE/requirements.txt \
|
||||
APP_PROFILER/main.py APP_PROFILER/migrate.py APP_PROFILER/requirements.txt \
|
||||
|
||||
Reference in new issue
Block a user