Example:
- I grab a new TV show and no directory exists for this show at the moment
- Once completed, my filebot script gets triggered (note: this is just part of the script):
Code: Select all
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action duplicate --conflict auto -non-strict --log-file /root/tmp/amc.log --def "exec=chmod 777 '{folder}/' ; chown root:admin '{folder}/'" unsorted=y
Code: Select all
"exec=chmod 777 '{folder}/' ; chown root:admin '{folder}/'"
So:
Code: Select all
New TV Show (permission incorrect)
- Sub dir 1 (permission is correct - 777 & root:admin)
------ File.mkv (permission is correct - 777 & root:admin)
