1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-06-23 14:09:39 +02:00

Improve linux/unix scripts guidelines with shebang and chmod with references.

msdos 2017-09-06 23:45:58 -03:00
parent 1904cc41fa
commit 4d75d31757

@ -49,6 +49,10 @@ Radarr can execute a custom script when new movies are imported or renamed, depe
| Movie_TvdbId | TVDB ID for the movie |
### Specific usage tips ###
#### LINUX / UNIX Scripts ####
Remember to always add a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) and make your scripts executable with [chmod](https://en.wikipedia.org/wiki/Chmod).
#### PHP ####
The information from Radarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a).
#### PowerShell ####