mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-24 23:00:42 +00:00
* Trilium: keep the installed version when an update download fails update_script deleted /opt/trilium before fetch_and_deploy_gh_release, so a failed download (GitHub answered 502 for the v0.107.0 archive) left the container without Trilium, and every later update stopped at "No Trilium Installation Found". CLEAN_INSTALL=1 lets core clear the target only after the archive has downloaded and extracted. If the deploy still fails, the service is started again on the installed version and the pending marker makes the next update retry. The install check now looks for trilium.service, so containers broken by the old order recover with a plain update. The "database" backup copied /opt/trilium/assets/db, which only holds files shipped in the release; notes live in Trilium's data directory, which the update never touches. Removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TjCs8G7xWJ12fzC1g4v81E * Trilium: back up the notes database before updating With the service stopped and before the new release is deployed, the update copies document.db (and a -wal file left by an unclean stop) to <data dir>/backup/backup-before-update.db. The copy is kept after the update, overwritten by the next one, and listed on Trilium's Backup page. If it cannot be written, the update does not start and Trilium is restarted. An install whose TRILIUM_DATA_DIR is inside /opt/trilium is refused before anything is stopped, since CLEAN_INSTALL replaces that directory. The install check accepts /opt/trilium again as well as trilium.service, so no install that passed the old check fails the new one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TjCs8G7xWJ12fzC1g4v81E --------- Co-authored-by: s31teg <23174852+s31teg@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>