From 43716a2c74bc37f6f92d67b61f20619131f5a103 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 18 Jul 2026 21:43:21 -0400 Subject: [PATCH] Fix trailers/ dir ownership+mode in trailer_folder_migration.sh --- Tools/trailer_folder_migration.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/trailer_folder_migration.sh b/Tools/trailer_folder_migration.sh index 7629091..37b6101 100755 --- a/Tools/trailer_folder_migration.sh +++ b/Tools/trailer_folder_migration.sh @@ -132,6 +132,10 @@ for show_dir in "${!SHOW_FILES[@]}"; do FAIL_LIST+=("$show_name") continue } + # mkdir as root defaults to root:root 777 — match the library's + # nobody:users / 755 convention (PERMISSIONS_OWNER/PERMISSIONS_DIR_MODE) + chown "${PERMISSIONS_OWNER:-nobody:users}" "$trailers_dir" 2>/dev/null + chmod "${PERMISSIONS_DIR_MODE:-755}" "$trailers_dir" 2>/dev/null fi idx=0