Harden Docker ownership startup

This commit is contained in:
Codex
2026-08-10 11:15:22 +02:00
parent a41011ae17
commit db8b9f3560
5 changed files with 22 additions and 10 deletions
+3 -1
View File
@@ -4088,7 +4088,9 @@ class TemplateHelperTests(unittest.TestCase):
self.assertIn("${JELLYFIN_TV_DIR:-./jellyfin/tv}:/jellyfin/tv", compose)
self.assertIn("${JELLYFIN_MOVIE_DIR:-./jellyfin/movies}:/jellyfin/movies", compose)
self.assertIn("mkdir -p /downloads /jellyfin/tv /jellyfin/movies /app/.kaizoku", dockerfile)
self.assertIn("chown \"$uid:$gid\" /downloads /jellyfin/tv /jellyfin/movies", entrypoint)
self.assertIn("chown_path()", entrypoint)
self.assertIn("Warning: could not change ownership", entrypoint)
self.assertIn("for path in /downloads /jellyfin/tv /jellyfin/movies /app/.kaizoku /app/.kaizoku/home", entrypoint)
def test_active_code_does_not_reference_retired_metadata_source(self):
active_files = ("app.py", "app_support.py", "http_handler.py", "provider_bridge.py", "provider_downloader.py")