Properly using "exec"
Posted: 17 Aug 2022, 16:01
My filebot call is working great except I can't get it to set permissions for me. I am using "exec" to send bash commands to change file ownership and permissions as well as start another script. The script runs as planned but the bash commands don't seem to execute. Is there problem with my usage?
Code: Select all
docker exec FileBot /opt/filebot/filebot -script fn:amc --output '/mnt/user/media/' \
--log-file amc.log \
--action test \
--conflict index -non-strict \
--db TheMovieDB \
--def pushbullet=$pushbullet_token \
--def pushover=$pushover_userkey:$pushover_apitoken \
"exec=chown -R nobody:users '{folder}/' ; chmod -R 775 '{folder}/' ; chmod 1777 '{folder}/' ; /opt/filebot/filebot -script fn:verify '{f}/'" \
music=y artwork=y \
ignore='idx|\.sub' \
'movieFormat='"$movie_format" \
'seriesFormat='"$series_format" \
'musicFormat='"$music_format" \
"$file_name"