Compare commits

..

5 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
2554f91ec1 Update Endurain service update messages 2026-08-26 15:46:38 +02:00
CanbiZ (MickLesk)
0f1db0d631 Clean up comments in endurain.sh
Removed comments about legacy FRONTEND_DIR migration.
2026-08-26 15:45:33 +02:00
MickLesk
f66c3d89ba endurain: migrate legacy FRONTEND_DIR path on update 2026-08-26 15:39:00 +02:00
community-scripts-pr-app[bot]
408e74da4a Update CHANGELOG.md (#16792)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-26 12:09:46 +00:00
community-scripts-pr-app[bot]
d2883d54ee Update CHANGELOG.md (#16791)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-26 12:09:36 +00:00

View File

@@ -35,29 +35,29 @@ function update_script() {
msg_ok "Stopped Service"
NODE_VERSION="24" setup_nodejs
create_backup /opt/endurain/.env /opt/endurain/frontend/dist/env.js
CLEAN_INSTALL=1 fetch_and_deploy_codeberg_release "endurain" "endurain-project/endurain" "tarball" "latest" "/opt/endurain"
msg_info "Preparing Update"
msg_info "Updating Endurain Frontend"
cd /opt/endurain
rm -rf /opt/endurain/{docs,example.env,screenshot_01.png} /opt/endurain/docker* /opt/endurain/*.yml
msg_ok "Prepared Update"
msg_info "Updating Frontend"
cd /opt/endurain/frontend
$STD npm ci
$STD npm run build
msg_ok "Updated Frontend"
msg_ok "Updated Endurain Frontend"
restore_backup
msg_info "Updating Backend"
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 Endurain Backend"
cd /opt/endurain/backend
UV_VERSION=$(grep -Po 'required-version\s*=\s*"\K[^"]+' pyproject.toml 2>/dev/null || echo "0.11.18")
UV_VERSION="$UV_VERSION" setup_uv
$STD uv sync --frozen --no-dev
msg_ok "Backend Updated"
msg_ok "Endurain Backend Updated"
msg_info "Starting Service"
systemctl start endurain