From f66c3d89bacb3f671216e60067f5b70fbb2d89c9 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 26 Aug 2026 15:39:00 +0200 Subject: [PATCH] endurain: migrate legacy FRONTEND_DIR path on update --- ct/endurain.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ct/endurain.sh b/ct/endurain.sh index 30ecc81cd..fdd70d3da 100644 --- a/ct/endurain.sh +++ b/ct/endurain.sh @@ -52,6 +52,12 @@ function update_script() { restore_backup + # Existing installs may still have the pre-7e15a4b FRONTEND_DIR path restored + # from backup; migrate only that exact legacy value, never a custom path. + if grep -qxF 'FRONTEND_DIR="/opt/endurain/frontend/app/dist"' /opt/endurain/.env; then + sed -i 's|^FRONTEND_DIR="/opt/endurain/frontend/app/dist"$|FRONTEND_DIR="/opt/endurain/frontend/dist"|' /opt/endurain/.env + fi + msg_info "Updating Backend" cd /opt/endurain/backend UV_VERSION=$(grep -Po 'required-version\s*=\s*"\K[^"]+' pyproject.toml 2>/dev/null || echo "0.11.18")