I have a 3rd party tool that requires a manual permissions modification on a file following an update (Dont even get me started on this, but it is what it is for now)
I would love to setup a cronjob that will update the permissions for me.
However, the path is going to be dynamic and will look something like this:
/foo/bar/v1.1.0/FILE_TO_MODIFY
Where the version number will change on each release. Old versions are kept in the same directory for rollback purposes
I have no idea how to solve this challenge. The idea of a symlink to "latest" came to mind but because I have no control over the folder structure of their application, I cant set this up
I used @Gerald Schneiders solution: