transmission/torrent-done: make files readable (speculative)

This commit is contained in:
2024-08-06 08:26:16 +00:00
parent 1cdeedd9ec
commit 1a67a05238

View File

@@ -44,6 +44,7 @@ destructive rsync -rlv "$TR_TORRENT_DIR/" "$MEDIA_DIR/"
# make the media rwx by anyone in the group # make the media rwx by anyone in the group
destructive find "$MEDIA_DIR" -type d -exec setfacl --recursive --modify d:g::rwx,o::rx {} \; destructive find "$MEDIA_DIR" -type d -exec setfacl --recursive --modify d:g::rwx,o::rx {} \;
destructive find "$MEDIA_DIR" -type d -exec chmod g+rw,a+rx {} \; destructive find "$MEDIA_DIR" -type d -exec chmod g+rw,a+rx {} \;
destructive find "$MEDIA_DIR" -type f -exec chmod g+rw,a+r {} \;
# if there's a single directory inside the media dir, then inline that # if there's a single directory inside the media dir, then inline that
subdirs=("$MEDIA_DIR"/*) subdirs=("$MEDIA_DIR"/*)