Files
ProxmoxVE/ct
Tim Moore 03edfcef85 fix(bazarr): store data in /var/lib/bazarr instead of inside /opt/bazarr (#16098)
* fix(bazarr): store data in /var/lib/bazarr instead of inside /opt/bazarr

The installer creates /var/lib/bazarr and update_script() uses it as the
"is Bazarr installed" guard, but nothing pointed Bazarr at it. Bazarr
defaults its data directory to <install dir>/data, resolved from its own
source file rather than WorkingDirectory, so a stock container kept
config/ db/ backup/ cache/ log/ restore/ in /opt/bazarr/data - the
directory fetch_and_deploy_gh_release redeploys over - while
/var/lib/bazarr stayed empty.

Pass -c /var/lib/bazarr in the unit, matching the -data= flag the other
*arr scripts use. bazarr.py re-execs its child with sys.argv[1:], so the
flag survives the restart Bazarr performs while loading its config.

update_script() gains a one-time migration for existing installs. It runs
outside the release check so containers already on the latest version are
migrated too, is skipped when the unit already names a data directory,
refuses (before stopping the service) when both locations hold data, and
copies before removing so a failed migration leaves the original database
in place.

Fixes #16097

* fix(bazarr): drop explanatory comments per review
2026-07-28 18:10:12 +10:00
..
2026-07-27 12:50:46 +02:00
2026-06-13 18:43:15 +02:00
2026-06-13 18:43:15 +02:00
2026-07-16 18:01:44 +10:00
2026-06-13 18:43:15 +02:00
2026-06-13 18:43:15 +02:00
2026-06-14 14:32:06 +02:00
2026-06-14 14:32:06 +02:00
2026-06-14 14:32:06 +02:00
2026-07-27 20:41:01 +10:00
2026-06-14 14:32:06 +02:00
2026-06-27 21:07:03 +02:00
2026-07-27 10:52:43 +02:00
2026-06-23 18:20:47 +02:00
2026-07-13 14:58:23 +02:00
2026-07-27 10:32:20 +02:00
2026-06-14 14:32:06 +02:00
2026-07-07 22:45:52 +02:00
2026-07-20 11:55:01 +02:00
2026-07-14 14:16:10 +02:00
2026-07-05 22:28:00 +02:00
2026-07-16 17:30:38 +10:00
2026-07-17 14:30:55 +02:00
2026-06-17 10:12:39 +02:00
2026-07-13 17:39:10 +02:00
2026-07-11 20:00:36 +02:00
2026-07-27 10:51:17 +02:00
2026-07-15 20:55:10 +10:00
2026-07-27 09:53:27 +02:00
2026-07-26 18:53:08 +02:00
2026-07-17 09:00:32 +02:00
2026-07-17 14:30:27 +02:00
2026-07-27 08:41:11 +02:00
2026-07-27 10:31:10 +02:00
2026-07-13 11:05:11 +02:00
2026-07-26 19:04:53 +02:00
2026-07-27 10:03:11 +02:00
2026-07-16 09:01:53 +02:00
2026-07-10 10:57:27 +02:00
2026-07-16 18:02:13 +10:00
2026-07-27 12:50:46 +02:00
2026-07-14 14:15:32 +02:00